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

Invalid properties included in OpenAPI v3.0 output document #2105

Closed
Azquelt opened this issue Dec 10, 2024 · 0 comments · Fixed by #2117
Closed

Invalid properties included in OpenAPI v3.0 output document #2105

Azquelt opened this issue Dec 10, 2024 · 0 comments · Fixed by #2117
Labels
bug Something isn't working

Comments

@Azquelt
Copy link
Contributor

Azquelt commented Dec 10, 2024

If output in OpenAPI v3.0 is configured, properties which were added in OpenAPI 3.1 are included in the output document.

Previously, if the output mode was 3.0, we would drop any properties which are not valid for 3.0, I think that changed in #2021.

I don't think OpenAPI allows the addition of arbitrary fields, so I think we should revert this behaviour change to ensure we're always outputting a valid OpenAPI v3.0 document.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants