Skip to content

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

Open
apetresc wants to merge 1 commit intoopenai:mainfrom
apetresc:bugfix/openai-yaml-servers-block-5
Open

[Bugfix] Move servers block to root of OpenAPI object#313
apetresc wants to merge 1 commit intoopenai:mainfrom
apetresc:bugfix/openai-yaml-servers-block-5

Conversation

@apetresc
Copy link
Copy Markdown

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
Copy Markdown
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