Open karlismelderis-mckinsey opened 3 weeks ago
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
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