Closed jksevend-trimble closed 4 months ago
The parse exception is not related to this library, you just have invalid JSON, for instance you may have an extra comma.
The else
issue is a bug, but fixes will only be applied to the latest version, so you will need to replicate the issue with the latest version. In this particular case this was already fixed in 1.0.73, but you probably should be using the latest version, because a lot of issues have been fixed since then.
Hello, I setup version 1.0.72 of your validator package (really great btw) in a spring boot application to validate incoming JSON requests. Validation works, what confuses me is a warning
I am instantiating the schema factory for the 2020-12 draft:
and the if/then/else object:
Now I experimented with saying "else": {} or "else": false (since i do not really need the else block in my particular use case) but omitting the else block completely by not defining it results in a JsonParseException from Jackson.
Is there any way to either fix the warning, or not define the else block at all without the JsonParseException to be thrown?