public class DefaultJsonUriSchemaLoader extends Object implements JsonUriSchemaLoader
| Modifier and Type | Field and Description |
|---|---|
protected com.networknt.schema.SchemaValidatorsConfig |
config |
protected com.networknt.schema.SpecVersion.VersionFlag |
defaultVersion |
protected com.fasterxml.jackson.databind.ObjectMapper |
mapper |
| Constructor and Description |
|---|
DefaultJsonUriSchemaLoader() |
| Modifier and Type | Method and Description |
|---|---|
com.networknt.schema.JsonSchema |
createSchema(org.apache.camel.CamelContext camelContext,
String schemaUri)
Create a new Schema based on the schema input stream.
|
protected com.fasterxml.jackson.databind.ObjectMapper mapper
protected com.networknt.schema.SchemaValidatorsConfig config
protected com.networknt.schema.SpecVersion.VersionFlag defaultVersion
public com.networknt.schema.JsonSchema createSchema(org.apache.camel.CamelContext camelContext,
String schemaUri)
throws Exception
JsonUriSchemaLoadercreateSchema in interface JsonUriSchemaLoadercamelContext - camel contextschemaUri - the schema URIExceptionApache Camel