We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
No response
6 -> 7.4.0
@ApiProperty({ type: undefined, oneOf: [ { type: 'array', items: { type: 'string' } }, { type: 'array', items: { type: 'number' } }, { type: 'array', items: { type: 'boolean' } }, ], description: API_DESCRIPTION, }) values: string[] | number[] | boolean[]
this configuration used to produce this schema in v6
"values": { "oneOf": [ { "type": "array", "items": { "type": "string" } }, { "type": "array", "items": { "type": "number" } }, { "type": "array", "items": { "type": "boolean" } } ] }
in v7 for some reason type: array is added and oneOf suddenly defines items not schema of "values"
type: array
oneOf
I expect to see this schema to be generated:
The text was updated successfully, but these errors were encountered:
I think I found a workaround
type Values = string[] | number[] | boolean[] @ApiProperty({ type: undefined, oneOf: [ { type: 'array', items: { type: 'string' } }, { type: 'array', items: { type: 'number' } }, { type: 'array', items: { type: 'boolean' } }, ], description: API_DESCRIPTION, }) values: Values
it will do for us but behaviour is unexpected nevertheless
Sorry, something went wrong.
No branches or pull requests
Did you read the migration guide?
Is there an existing issue that is already proposing this?
Potential Commit/PR that introduced the regression
No response
Versions
6 -> 7.4.0
Describe the regression
this configuration used to produce this schema in v6
in v7 for some reason
type: array
is added andoneOf
suddenly defines items not schema of "values"Minimum reproduction code
Expected behavior
I expect to see this schema to be generated:
Other
No response
The text was updated successfully, but these errors were encountered: