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
When loading a schema using $ref I have found a case where the configuration I use to instantiate the main schema is not being honored, in my case I want to set typeLoose=false, but it seems is not propagated.
I have taken a look to the code and I think the issue is in this line:
returnnewJsonSchema(newValidationContext(this.uriFactory, jsonMetaSchema, this), mappedUri, schemaNode, true/*retrieved via id, resolving will not change anything*/);
A ValidationContext is instantiated there, but the SchemaValidatorsConfig passed as an argument is not used.
Please could you take a look?
The text was updated successfully, but these errors were encountered:
Thanks for the fix @stevehu. I have managed to try the library with the fix and it resolves our issue. I guess it will be included in next release, right?
@jorcasso Thanks for the review and confirmation. Yes. It will be in the next release. We still have several pending issues to merge before the release but it will be soon.
When loading a schema using
$ref
I have found a case where the configuration I use to instantiate the main schema is not being honored, in my case I want to settypeLoose=false
, but it seems is not propagated.I have taken a look to the code and I think the issue is in this line:
json-schema-validator/src/main/java/com/networknt/schema/JsonSchemaFactory.java
Line 304 in 20b246f
A
ValidationContext
is instantiated there, but theSchemaValidatorsConfig
passed as an argument is not used.Please could you take a look?
The text was updated successfully, but these errors were encountered: