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
If additionalProperties is set to false and a property value falls outside of the enum, an additional schema error of Additional object properties are not allowed is also returned.
Expected behavior
Only the The data should match one item from enum error should be returned.
It is because you probably have $validator->setStopAtFirstError(false);
This is a good example of why validation should stop when an error occured, some keywords should be reached only if data is valid so far.
I will try to make a fix, but I think this won't be the last time.
If
additionalProperties
is set tofalse
and a property value falls outside of the enum, an additional schema error ofAdditional object properties are not allowed
is also returned.Expected behavior
Only the
The data should match one item from enum
error should be returned.Schema
Data
Error
The text was updated successfully, but these errors were encountered: