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
The short answer is Yes. Discriminators are supported (indirectly).
To quote Evgeny
...in OpenAPI v3 you must use oneOf, discriminator is just to inform the tools what is the logic behind these oneOfs. My understanding is that removing discriminator in v3 should always result in the same validation outcome (valid/invalid), but may affect error reporting or some other behaviours. So from validation point of view it can be just ignored.
Assuming, this is the case, then yes, express-openapi-validator does support discriminators given it supports oneOf.
If you find that they is a gap or something is not working, please let us know and we'll get to work on it.
Do you support validation against the discriminator spec https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#discriminatorObject ?
The text was updated successfully, but these errors were encountered: