This repository was archived by the owner on Feb 28, 2026. It is now read-only.
v0.4.19
Pre-release
Pre-release
2017-11-20 Version 0.4.19
Features
-
The interpretation of Swagger 2.0 "discriminator" is now lenient. This means for these two scenarios:
- Discriminator value is missing from the received payload
- Discriminator value is not defined in the Swagger
Instead of failing with an exception, this now returns the base type for this "discriminator".
Note that this is not a contradiction of the Swagger 2.0 spec, that specifies
"validation SHOULD fail [...] there may exist valid reasons in particular circumstances to ignore a particular item,
but the full implications must be understood and carefully weighed before choosing a different course."This cannot be configured for now and is the new default behvaior, but can be in the future if needed.