public interface SchemaRepository
| Modifier and Type | Method and Description |
|---|---|
static SchemaRepository |
create(JsonSchemaOptions options)
Create a repository with some initial configuration.
|
SchemaRepository |
dereference(JsonSchema schema)
Dereferences a schema to the repository.
|
SchemaRepository |
dereference(String uri,
JsonSchema schema)
Dereferences a schema to the repository.
|
Validator |
validator(JsonSchema schema)
A new validator instance using this repository options.
|
Validator |
validator(JsonSchema schema,
JsonSchemaOptions options)
A new validator instance overriding this repository options.
|
static SchemaRepository create(JsonSchemaOptions options)
options - the initial configurationSchemaRepository dereference(JsonSchema schema) throws SchemaException
schema - a new schema to listSchemaException - when a schema is already present for the same idSchemaRepository dereference(String uri, JsonSchema schema) throws SchemaException
uri - the source of the schema used for de-referencing, optionally relative to
JsonSchemaOptions.getBaseUri().schema - a new schema to listSchemaException - when a schema is already present for the same idValidator validator(JsonSchema schema)
schema - the start validation schemaValidator validator(JsonSchema schema, JsonSchemaOptions options)
schema - the start validation schemaoptions - the options to be using on the validator instanceCopyright © 2022 Eclipse. All rights reserved.