Interface JsonUriSchemaLoader
- All Known Implementing Classes:
DefaultJsonUriSchemaLoader
public interface JsonUriSchemaLoader
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, String schemaUri) Create a new Schema based on the schema input stream.
-
Method Details
-
createSchema
com.networknt.schema.JsonSchema createSchema(org.apache.camel.CamelContext camelContext, String schemaUri) throws Exception Create a new Schema based on the schema input stream.- Parameters:
camelContext
- camel contextschemaUri
- the schema URI- Returns:
- a Schema to be used when validating incoming requests
- Throws:
Exception
-