Interface JsonSchemaLoader
- All Known Implementing Classes:
DefaultJsonSchemaLoader
Deprecated.
Use JsonUriSchemaLoader instead
Can be used to create custom schema for the JSON validator endpoint.
-
Method Summary
Modifier and TypeMethodDescriptioncom.networknt.schema.JsonSchema
createSchema
(org.apache.camel.CamelContext camelContext, InputStream inputStream) Deprecated.useJsonUriSchemaLoader
instead
-
Method Details
-
createSchema
@Deprecated com.networknt.schema.JsonSchema createSchema(org.apache.camel.CamelContext camelContext, InputStream inputStream) throws Exception Deprecated.useJsonUriSchemaLoader
insteadCreate a new Schema based on the schema input stream.- Parameters:
camelContext
- camel contextinputStream
- the resource input stream- Returns:
- a Schema to be used when validating incoming requests
- Throws:
Exception
-