Package com.networknt.schema
Class DisallowUnknownJsonMetaSchemaFactory
java.lang.Object
com.networknt.schema.DisallowUnknownJsonMetaSchemaFactory
- All Implemented Interfaces:
JsonMetaSchemaFactory
A
JsonMetaSchemaFactory
that does not meta-schemas that aren't
explicitly configured in the JsonSchemaFactory
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the instance ofDisallowUnknownJsonMetaSchemaFactory
.getMetaSchema
(String iri, JsonSchemaFactory schemaFactory, SchemaValidatorsConfig config) Gets the meta-schema given the IRI.
-
Constructor Details
-
DisallowUnknownJsonMetaSchemaFactory
public DisallowUnknownJsonMetaSchemaFactory()
-
-
Method Details
-
getMetaSchema
public JsonMetaSchema getMetaSchema(String iri, JsonSchemaFactory schemaFactory, SchemaValidatorsConfig config) Description copied from interface:JsonMetaSchemaFactory
Gets the meta-schema given the IRI.- Specified by:
getMetaSchema
in interfaceJsonMetaSchemaFactory
- Parameters:
iri
- the meta-schema IRIschemaFactory
- the schema factoryconfig
- the config- Returns:
- the meta-schema
-
getInstance
Gets the instance ofDisallowUnknownJsonMetaSchemaFactory
.- Returns:
- the json meta schema factory
-