-
-
Notifications
You must be signed in to change notification settings - Fork 380
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
fix(OpenAPI): YAML schema dump #3537
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3537 +/- ##
=======================================
Coverage 98.28% 98.28%
=======================================
Files 328 328
Lines 14848 14848
Branches 2358 2358
=======================================
Hits 14593 14593
Misses 116 116
Partials 139 139 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this need a test? if so how to test it? but its a go from me 🙂
Documentation preview will be available shortly at https://litestar-org.github.io/litestar-docs-preview/3537 |
Added a test for this in efa4fd1 on the I suspect #2634 is related but it got mistakenly closed due to the nature of this bug, so one more reason to add a test I guess :D |
thanks for contributing again :) |
Description
Fixes an issue in the OpenAPI YAML schema dump logic of
OpenAPIController
where the endpoint for the OpenAPI YAML schema file returns an empty response if a request has been made to the OpenAPI JSON schema previously due to an incorrect variable check.Closes
Edit from @Alc-Alc: https://discord.com/channels/919193495116337154/919193495690936353/1246024918487793744 explains the need for this