Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to output openapi3 instead of 3.1 #108

Open
simonblund opened this issue Sep 11, 2023 · 1 comment
Open

Option to output openapi3 instead of 3.1 #108

simonblund opened this issue Sep 11, 2023 · 1 comment
Labels

Comments

@simonblund
Copy link

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

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

@github-actions github-actions bot added the Stale label Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant