TSOA parameter serialization

39 Views Asked by At

Is it possible to use Swagger Parameter Serialization options with TSOA annotations or change default serialization in global config?

I have an API, that has an query property of type array, something like:

public async getUsers(@Query('status') status?: UserStatus[])

That produce something like: https://user.service/api/users?status=ACTIVE&status=BLOCKED&status=PENDING

But i want it comma separated: https://user.service/api/users?status=ACTIVE,BLOCKED,PENDING

Thanks!

0

There are 0 best solutions below