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

[Bugfix] Move servers block to root of OpenAPI object #313

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

apetresc
Copy link

The OpenAPI specification clearly states that the servers object is in the root, not a child of info. The examples/memory YAML gets this right, but the local_server and main .well-known ones do not.

This isn't a huge breaking problem or anything, but it does prevent tools like openapi-generator from working cleanly without passing in --skip-validate-spec. This simple change fixes it.

Closes #5. Mentioned in #201.

@apetresc
Copy link
Author

Pinging this to hopefully get some attention on it.

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

Successfully merging this pull request may close these issues.

Invalid OpenAPI YAML
1 participant