swaggest / php-json-schema

High definition PHP structures with JSON-schema based validation
MIT License
438 stars 50 forks source link

Better error message instead of "array is not unique" #132

Open MaxMatti opened 2 years ago

MaxMatti commented 2 years ago

Took me about 30 minutes to figure out that the error message that is being generated here refers to the fact that my required field contained an item twice. Also it's only mentioned in a subError and the error itself is being presented as "No valid results for anyOf". Please modify this error message to be more concise, thank you.

vearutop commented 2 years ago

Hi, could you share the error message you got and what you would prefer to see?