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

how to convert open api 3.1 to swagger 2.0 #348

Open
Merouane1 opened this issue Sep 6, 2022 · 2 comments
Open

how to convert open api 3.1 to swagger 2.0 #348

Merouane1 opened this issue Sep 6, 2022 · 2 comments

Comments

@Merouane1
Copy link

No description provided.

@thedarkviet
Copy link

Bumping this question.

Hi I am also wondering about the answer to this question. We have a use case where we need to generate Open Api Spec 2.0 from Open Api Spec 3.1. Does LucyBot have this update in the near future?

@orlade
Copy link

orlade commented Jan 23, 2025

You can try simply changing the version in your OpenAPI spec to 3.0.0 before calling the converter. This at least allows the conversion to happen, but I suppose it's not guaranteed to work (may not handle new 3.1.0 features).

In your OpenAPI spec, set:

  "openapi": "3.0.0",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants