flask-openapi3 icon indicating copy to clipboard operation
flask-openapi3 copied to clipboard

Option to output openapi3 instead of 3.1

Open simonblund opened this issue 2 years ago • 1 comments

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 avatar Sep 11 '23 12:09 simonblund

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

simonblund avatar Sep 12 '23 09:09 simonblund