export class AdministratorLoginDto {
@ApiProperty()
userName: number[];
}
I set userName with number[], but i get the openapi is string[].
I set userName with number[], but i get the openapi json is string[].
{
"AdministratorLoginDto": {
"type": "object",
"properties": {
"userName": {
"type": "array",
"items": {
"type": "string" // question: why this type is not number?
}
}
},
"required": [
"userName"
]
}
}
Thank you!