Package com.networknt.schema
Class JsonSchemaFactory.Builder
java.lang.Object
com.networknt.schema.JsonSchemaFactory.Builder
- Enclosing class:
JsonSchemaFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMetaSchema(JsonMetaSchema jsonMetaSchema) Deprecated.addMetaSchemas(Collection<? extends JsonMetaSchema> jsonMetaSchemas) Deprecated.build()defaultMetaSchemaIri(String defaultMetaSchemaIri) enableSchemaCache(boolean enableSchemaCache) jsonMapper(com.fasterxml.jackson.databind.ObjectMapper jsonMapper) Deprecated.jsonNodeReader(JsonNodeReader jsonNodeReader) Sets the json node reader to read the data.metaSchema(JsonMetaSchema jsonMetaSchema) metaSchemaFactory(JsonMetaSchemaFactory jsonMetaSchemaFactory) metaSchemas(Collection<? extends JsonMetaSchema> jsonMetaSchemas) metaSchemas(Consumer<Map<String, JsonMetaSchema>> customizer) schemaLoaders(Consumer<SchemaLoaders.Builder> schemaLoadersBuilderCustomizer) schemaMappers(Consumer<SchemaMappers.Builder> schemaMappersBuilderCustomizer) yamlMapper(com.fasterxml.jackson.databind.ObjectMapper yamlMapper) Deprecated.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
jsonNodeReader
Sets the json node reader to read the data.If set this takes precedence over the configured json mapper and yaml mapper.
A location aware object reader can be created using JsonNodeReader.builder().locationAware().build().
- Parameters:
jsonNodeReader- the object reader- Returns:
- the builder
-
jsonMapper
@Deprecated public JsonSchemaFactory.Builder jsonMapper(com.fasterxml.jackson.databind.ObjectMapper jsonMapper) Deprecated.Sets the json mapper to read the data.If the object reader is set this will not be used.
This is deprecated use an object reader instead.
- Parameters:
jsonMapper- the json mapper- Returns:
- the builder
-
yamlMapper
@Deprecated public JsonSchemaFactory.Builder yamlMapper(com.fasterxml.jackson.databind.ObjectMapper yamlMapper) Deprecated.Sets the yaml mapper to read the data.If the object reader is set this will not be used.
This is deprecated use an object reader instead.
- Parameters:
yamlMapper- the yaml mapper- Returns:
- the builder
-
defaultMetaSchemaIri
-
metaSchemaFactory
-
metaSchema
-
metaSchemas
-
metaSchemas
-
enableSchemaCache
-
schemaLoaders
public JsonSchemaFactory.Builder schemaLoaders(Consumer<SchemaLoaders.Builder> schemaLoadersBuilderCustomizer) -
schemaMappers
public JsonSchemaFactory.Builder schemaMappers(Consumer<SchemaMappers.Builder> schemaMappersBuilderCustomizer) -
addMetaSchema
Deprecated. -
addMetaSchemas
@Deprecated public JsonSchemaFactory.Builder addMetaSchemas(Collection<? extends JsonMetaSchema> jsonMetaSchemas) Deprecated. -
build
-