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

Swagger version mismatch #154

Closed
neon-ninja opened this issue Nov 3, 2023 · 4 comments
Closed

Swagger version mismatch #154

neon-ninja opened this issue Nov 3, 2023 · 4 comments

Comments

@neon-ninja
Copy link

When visiting /docs, I get this error:

Unable to render this definition
The provided definition does not specify a valid version field.

Please indicate a valid Swagger or OpenAPI version field. Supported version fields are swagger: "2.0" and those that match openapi: 3.0.n (for example, openapi: 3.0.0).

Indeed, the version in /openapi.json is "openapi": "3.1.0",

@paultepe
Copy link

paultepe commented Nov 3, 2023

I get the same error.

@RainbowXie
Copy link

the same.

@neon-ninja
Copy link
Author

oh, this is a duplicate of #153. You beat me by one minute @paultepe ;)

@hulleyrob
Copy link

ive just spent an hour trying to fix this error and it went away by putting the docs folder inside /app.

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

4 participants