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
[ ] Regression
[ x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
Using OmitType on QueryDto which has array parameter with ApiProperty decorator in the parent class causes error on Swagger UI. The error is below: Uncaught (in promise) TypeError: Cannot read property 'anyOf' of undefined
However the error disappears when I remove ApiProperty decorator on characteristics property. Also it works fine if I change CreateCatDto to @Body Dto in the controller.
I'm submitting a...
Current behavior
Using OmitType on QueryDto which has array parameter with ApiProperty decorator in the parent class causes error on Swagger UI. The error is below:
Uncaught (in promise) TypeError: Cannot read property 'anyOf' of undefined
However the error disappears when I remove ApiProperty decorator on
characteristics
property. Also it works fine if I changeCreateCatDto
to @Body Dto in the controller.create-cat.dto.ts
cats.controller.ts
Expected behavior
Swagger UI should work just fine regardless the existence of ApiProperty decorator.
Minimal reproduction of the problem with instructions
Minimal reproduction repo
What is the motivation / use case for changing the behavior?
My motivation to add ApiProperty decorator there is to show the collectionFormat of csv. Is there any better way to do that regardless this bug?
Environment
The text was updated successfully, but these errors were encountered: