The swagger spec allows polymorphism using a discriminator field. I don't think swaggerize-routes has support for this at the moment, can you confirm this is the case?
For example, say I have an api parameter specified as:
Since this is once again an example of Swagger not using standard json-schema, default validation will not support it. This is one of the ongoing problems with Swagger in general.
The swagger spec allows polymorphism using a
discriminator
field. I don't think swaggerize-routes has support for this at the moment, can you confirm this is the case?For example, say I have an api parameter specified as:
and definitions specified as:
Child thing is ignored and so it's fields are disallowed by validation