-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loading Schema String Not Validating #101
Comments
That's exactly what's supposed to happen with the example. The line triggering it is commented "Will throw a ValidationException" (TypeError is a ValidationException). |
My bad, I'm getting the same error when trying to load my schema from file and figured the error was happening at the same place. When I use my schema file it doesn't get past the loadSchema(). The schema validates using your validator here: https://tryjsonschematypes.appspot.com/#validate as well as generating data using the schema. I thought maybe it had something to do with the way the string was created but I've taken the string directly from debug to your validator and it works fine. One thing to note is that it sets the meta-schema to draft-04 even though the schema is using draft-07. I believe the schema I'm using still conforms to draft-04 so not sure it'a a factor. Any thoughts would be appreciated.
Here's the schema I'm testing with:
And here's the stacktrace:
|
I cannot get a schema string to load. I consistently get a TypeError expecting an object but found string with my implementation and then when I try to run the basic example with json string from your documentation I get a TypeError saying it expected an integer but got boolean. I'm using the 0.12.4 version using Java 11 (corretto), I first started with Java 22. I tried previous versions of your build but the result has been the same. Clean intellij project using gradle and you're the only dependency.
The text was updated successfully, but these errors were encountered: