Replies: 1 comment
-
Thanks for your feedback. The current version of jsoncons only supports JSON Schema Draft 7. Support for later versions is planned, and possibly earlier versions depending on user interest. In Draft 4, exclusiveMinimum is a boolean, but in later drafts that was changed to a number (integer or floating point), hence the error. Admittedly the error reporting when compiling the schema document is lacking. We should have checked the "$schema" keyword, and rejected draft-4 as not supported. And the error message "not a double" could have been more helpful, perhaps "exclusiveMinimum must be a number". Those issues will be addressed in the next release. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am trying out this library for schema validation, and ran into an issue with one of my unit tests. I found the following schema while searching for samples, and most online tools I tested it with, it seems to be valid. However, jsoncons rejects it with
Not a double
. error. Any idea where the error in the schema is?Beta Was this translation helpful? Give feedback.
All reactions