You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Regression
[x] Bug report
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
The generated OpenApi Document currently may be produced in a way where the property paths comes after the property components. While this, to my understanding, does not infringe the specification, it seems to lead to a tenacious bug when used as input for the swagger-ui.
The issue (swagger-api/swagger-ui#3325) regarding recursive rendering goes several years back. Would a behavior change be possible, even though the underlying problem is on their side (I did not know if I should classify this as a feature request or a bug report)?
Expected behavior
Have an interaction of swagger-ui and nestjs/swagger which produces an error-free API experience.
Minimal reproduction of the problem with instructions
I created a sandbox to illustrate the problem: expand the test endpoint -> switch to the tab "schema" -> fully expand the faulty outer type
The used generated OpenApi spec document looks like this:
If you check it in the swagger editor (https://editor.swagger.io/), you can see that the problem only exists as long as the paths property comes after the components property - everything works fine the other way around (thanks to @vanDarg for pointing this out).
What is the motivation / use case for changing the behavior?
A hopefully rather easy change avoids a tenacious bug on swagger-ui side.
I'm submitting a...
Current behavior
The generated OpenApi Document currently may be produced in a way where the property
paths
comes after the propertycomponents
. While this, to my understanding, does not infringe the specification, it seems to lead to a tenacious bug when used as input for the swagger-ui.The issue (swagger-api/swagger-ui#3325) regarding recursive rendering goes several years back. Would a behavior change be possible, even though the underlying problem is on their side (I did not know if I should classify this as a feature request or a bug report)?
Expected behavior
Have an interaction of swagger-ui and nestjs/swagger which produces an error-free API experience.
Minimal reproduction of the problem with instructions
I created a sandbox to illustrate the problem: expand the test endpoint -> switch to the tab "schema" -> fully expand the faulty outer type
The used generated OpenApi spec document looks like this:
If you check it in the swagger editor (https://editor.swagger.io/), you can see that the problem only exists as long as the paths property comes after the components property - everything works fine the other way around (thanks to @vanDarg for pointing this out).
What is the motivation / use case for changing the behavior?
A hopefully rather easy change avoids a tenacious bug on swagger-ui side.
Environment
The text was updated successfully, but these errors were encountered: