-
Notifications
You must be signed in to change notification settings - Fork 471
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
Setting the name attribute results in a schema change #2951
Labels
Comments
The root cause is the same as #2948. Moving the discussion there. |
12 tasks
Reopening because fixing this exact issue should be easier—require less OpenAPI spec research—than |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
Current behavior
Setting the
name
attribute on theApiProperty
decorator changes the generated OpenAPI JSON. For example, say I have a property namedlane
. If I do not set thename
attribute, I get:If I do set the attribute, I get:
These are roughly equivalent, but the
allOf
declaration can have issues as mentioned in #2948.Minimum reproduction code
https://gist.github.com/clintonb/16195739bf913e636f9ef4ead4bbbbdb
Steps to reproduce
name
attribute on theApiProperty
decorator.Expected behavior
The generated output should not change.
Package version
7.3.1
NestJS version
10.3.0
Node.js version
20.12.2
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: