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
{{ message }}
This repository was archived by the owner on Feb 12, 2022. It is now read-only.
Expected behavior
resource/ should accept a value such as: {"eventType":"foo", "bar":"val"}
and reject a value such as: {"not":"acceptable"}
Current behavior
Both are considered valid.
Seems to me the issue is that unless the discriminator field is present there's no validation at all and everything is valid.
There should be a validation that the discriminator field exists and then check for valid values of that field and validate accordingly, otherwise it should fail.