luolingchun / flask-openapi3

Generate REST API and OpenAPI documentation for your Flask project.
https://luolingchun.github.io/flask-openapi3/
MIT License
204 stars 33 forks source link

Option to output openapi3 instead of 3.1 #108

Open simonblund opened 1 year ago

simonblund commented 1 year ago

Hi! As always, thank you for your excellent work.

I have come to an issue in the 3.0rc version. The command line unexpectantly started to output the openapi spec in openapi3.1 instead of OAS3. Would it be possible to have an option to output to the latest OAS version and one before that for backwards compatibility?

Kr Simon

simonblund commented 1 year ago

Workaround for CI pipelines that requires to convert to swagger 2. cat openapi31.yaml | yq '.openapi="3.0.0"' > openapi30.yaml and then https://www.npmjs.com/package/api-spec-converter