Description
We're currently using json-guard to validate incoming API requests. The validation errors it produces are developer friendly and can be localized. You can immediately use them as part of the API error response.
Unfortunately json-guard
is abandoned and we're looking to switch to a different library. justinrainbow/json-schema
is a hot mess, so that leaves us with swaggest/json-schema
and opis/json-schema
. Both the swaggest and opis libraries are lacking developer friendly error messages.
I read the conversation in #11 and thought about implementing a formatter/renderer as suggested. Unfortunately, to do so I pretty much have to go though the entire spec and test each possible error to see how it looks in opis/json-schema
. For someone who wants to consume a library, this requires intimate knowledge of the library internals.
So IMO this library is incomplete/unusable until error messages are added and most likely other people will decide to stay away from it as well. Hence the issue title. As for us, we will keep using json-guard
for now.