Skip to content

Conversation

@pierrejeambrun
Copy link
Member

@pierrejeambrun pierrejeambrun commented Sep 9, 2024

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
Copy link
Member

potiuk commented Sep 9, 2024

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
Copy link
Member Author

pierrejeambrun commented Sep 9, 2024

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