Skip to content

SchemaValidatorsConfig not propagated #187

Closed
@jorcasso

Description

@jorcasso

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:

return new JsonSchema(new ValidationContext(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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions