Skip to content

Add openapi generation hook for UI API#42098

Merged
pierrejeambrun merged 1 commit into
apache:mainfrom
astronomer:ui-rest-api-and-new-ui
Sep 9, 2024
Merged

Add openapi generation hook for UI API#42098
pierrejeambrun merged 1 commit into
apache:mainfrom
astronomer:ui-rest-api-and-new-ui

Conversation

@pierrejeambrun

@pierrejeambrun pierrejeambrun commented Sep 9, 2024

Copy link
Copy Markdown
Member

Add a new pre-commit hook and utility script to persist to file the FastAPI openapi spec.

This will be useful for a follow up PR that will generate front-end types and query based on that spec.

Also it is useful for reviewer to see the openapi spec to easily identify breaking change or assess the impact of a PR on the interface. Later on automatic breaking change detection could be enforced in the CI I suppose.

Note: Excluded from apache licence because it is a generated file.

@pierrejeambrun pierrejeambrun merged commit 49e011f into apache:main Sep 9, 2024
@pierrejeambrun pierrejeambrun deleted the ui-rest-api-and-new-ui branch September 9, 2024 11:46
@potiuk

potiuk commented Sep 9, 2024

Copy link
Copy Markdown
Member

Cool. I found this one https://github.com/OpenAPITools/openapi-diff - maybe we can also (later when we get to be much closer) to employ that one to produce the diff ?

@pierrejeambrun

pierrejeambrun commented Sep 9, 2024

Copy link
Copy Markdown
Member Author

Yes this would be really helpful to have this kind of tool added to the CI. I'll keep that in mind for later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants