Package com.networknt.schema
Class DisallowUnknownJsonMetaSchemaFactory
- java.lang.Object
-
- com.networknt.schema.DisallowUnknownJsonMetaSchemaFactory
-
- All Implemented Interfaces:
JsonMetaSchemaFactory
public class DisallowUnknownJsonMetaSchemaFactory extends Object implements JsonMetaSchemaFactory
AJsonMetaSchemaFactory
that does not meta-schemas that aren't explicitly configured in theJsonSchemaFactory
.
-
-
Constructor Summary
Constructors Constructor Description DisallowUnknownJsonMetaSchemaFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DisallowUnknownJsonMetaSchemaFactory
getInstance()
Gets the instance ofDisallowUnknownJsonMetaSchemaFactory
.JsonMetaSchema
getMetaSchema(String iri, JsonSchemaFactory schemaFactory, SchemaValidatorsConfig config)
Gets the meta-schema given the IRI.
-
-
-
Method Detail
-
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
public static DisallowUnknownJsonMetaSchemaFactory getInstance()
Gets the instance ofDisallowUnknownJsonMetaSchemaFactory
.- Returns:
- the json meta schema factory
-
-