Class DefaultJsonUriSchemaLoader

    • Field Detail

      • mapper

        protected com.fasterxml.jackson.databind.ObjectMapper mapper
      • config

        protected com.networknt.schema.SchemaValidatorsConfig config
      • defaultVersion

        protected com.networknt.schema.SpecVersion.VersionFlag defaultVersion
    • Constructor Detail

      • DefaultJsonUriSchemaLoader

        public DefaultJsonUriSchemaLoader()
    • Method Detail

      • createSchema

        public com.networknt.schema.JsonSchema createSchema​(org.apache.camel.CamelContext camelContext,
                                                            String schemaUri)
                                                     throws Exception
        Description copied from interface: JsonUriSchemaLoader
        Create a new Schema based on the schema input stream.
        Specified by:
        createSchema in interface JsonUriSchemaLoader
        Parameters:
        camelContext - camel context
        schemaUri - the schema URI
        Returns:
        a Schema to be used when validating incoming requests
        Throws:
        Exception