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
It seems to not like this, as when I attempt to call schemaFactory.getSchema(node), it errors out with a stack overflow
com.networknt.schema.JsonSchemaException: java.lang.StackOverflowError
at com.networknt.schema.JsonMetaSchema.newValidator(JsonMetaSchema.java:247)
at com.networknt.schema.ValidationContext.newValidator(ValidationContext.java:24)
at com.networknt.schema.JsonSchema.read(JsonSchema.java:116)
at com.networknt.schema.JsonSchema.<init>(JsonSchema.java:56)
at com.networknt.schema.JsonSchema.<init>(JsonSchema.java:49)
at com.networknt.schema.AnyOfValidator.<init>(AnyOfValidator.java:38)
at sun.reflect.GeneratedConstructorAccessor8.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.networknt.schema.ValidatorTypeCode.newValidator(ValidatorTypeCode.java:102)
...
Cause: java.lang.StackOverflowError:
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
I updated to v0.1.13 today from v0.1.7, where it returned the JsonSchema object for the above schema without issue.
The text was updated successfully, but these errors were encountered:
With v0.1.13
I have a schema file with an recursive object, i.e. a parent object that can have a child object with the same schema.
It seems to not like this, as when I attempt to call
schemaFactory.getSchema(node)
, it errors out with a stack overflowI updated to v0.1.13 today from v0.1.7, where it returned the
JsonSchema
object for the above schema without issue.The text was updated successfully, but these errors were encountered: