Skip to content

Autogenerate openapi.yaml.j2 from model code #3788

@nmaludy

Description

@nmaludy

Currently st2common/st2common/openapi.yaml.j2 needs to be updated manually when a change is made to the API. This makes the update process error prone and potentially the openapi schema may not match the actual API implementation (see: #3522, #3783).

I'm proposing to autogenerate the openapi.yaml.j2 from source.

It would actually be great if the CLI, API and API documentation all were generated from a single "source of truth" to avoid errors and inconsistencies in the future.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions