Hello,
I thought this would be a more appropriate place for this question rather than Github.
I have an array of objects whose items only differ in a specific deep-nested field. Possible sub-schemas are strictly defined in two separate definitions and every object's properties are enforced with "required" and "additionalProperties" rules (the latter set to false).
When I try to match the whole input I expect the validator to try using a rule and, if it fails, try with the other one; instead it fails and reports that it couldn't match a given rule because it could not find a required field.
I wonder if this is expected-by-design (hence the title), a bug or if anyone knows a workaround.
Regards,
- Samuele