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
{"statusCode": 400,"error": "Bad Request","message": "child \"a\" fails because [child \"c\" fails because [\"c\" is required]]. child \"b\" fails because [child \"c\" fails because [\"c\" is required]]","validation": {"source": "payload","keys": ["a.c","b.c"]}}
These \" could be removed or replaced by ':
"child 'a' fails because [child 'c' fails because ['c' is required]]. child 'b' fails because [child 'c' fails because ['c' is required]]"
I don't know very well if this issue should be posted in the hapi or joi repos...
Given the following payload schema:
And the given value:
The error message is:
As you can see, the message has an ambiguous meaning. This should be: "a.c is required. b.c is required".
The text was updated successfully, but these errors were encountered: