#Help in writing recursive object validation
11 messages · Page 1 of 1 (latest)
Can you elaborate?
I mean how do I write valodation decorators in this case
Since 2 types are nested
And can be of 4 possible types
Probably a raw def. I don't know how well swagger handles recursive types
Currently Im using a custom vallidator
Swagger and validation are two different things
Just want to know of theres a better way
Sorry I'm asking about validations
With class-validator you'll need a custom validator to handle that