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
Setting the name attribute on the ApiProperty decorator changes the generated OpenAPI JSON. For example, say I have a property named lane. If I do not set the name attribute, I get:
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: