mirror of
https://github.com/justinrainbow/json-schema.git
synced 2025-05-01 20:09:46 +02:00
Currently, if a property has multiple valid types, an error message when a value doesn't conform to the schema, would mention only the last valid type, without mentioning the other valid types. This commit changes, how the TypeConstraint works internally. It does a little bit of refactoring (removing also the "Refacter this" ToDo) and now mentions any valid types on a failure. Fixes #293