Package io.vertx.mutiny.json.schema
Class SchemaRepository
java.lang.Object
io.vertx.mutiny.json.schema.SchemaRepository
- All Implemented Interfaces:
MutinyDelegate
A repository is a holder of dereferenced schemas, it can be used to create validator instances for a specific schema.
This is to be used when multiple schema objects compose the global schema to be used for validation.
NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSchemaRepository
(io.vertx.json.schema.SchemaRepository delegate) SchemaRepository
(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic SchemaRepository
create
(io.vertx.json.schema.JsonSchemaOptions options) static SchemaRepository
create
(io.vertx.json.schema.JsonSchemaOptions options, JsonFormatValidator jsonFormatValidator) dereference
(JsonSchema schema) dereference
(String uri, JsonSchema schema) boolean
io.vertx.json.schema.SchemaRepository
int
hashCode()
static SchemaRepository
newInstance
(io.vertx.json.schema.SchemaRepository arg) preloadMetaSchema
(FileSystem fs, io.vertx.json.schema.Draft draft) io.vertx.core.json.JsonObject
resolve
(io.vertx.core.json.JsonObject schema) io.vertx.core.json.JsonObject
resolve
(JsonSchema schema) io.vertx.core.json.JsonObject
toString()
validator
(JsonSchema schema) validator
(JsonSchema schema, io.vertx.json.schema.JsonSchemaOptions options) validator
(JsonSchema schema, io.vertx.json.schema.JsonSchemaOptions options, boolean dereference)
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
SchemaRepository
public SchemaRepository(io.vertx.json.schema.SchemaRepository delegate) -
SchemaRepository
-
-
Method Details
-
getDelegate
public io.vertx.json.schema.SchemaRepository getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
create
- Parameters:
options
- the initial configuration- Returns:
- a repository
-
create
public static SchemaRepository create(io.vertx.json.schema.JsonSchemaOptions options, JsonFormatValidator jsonFormatValidator) - Parameters:
options
- the initial configurationjsonFormatValidator
-- Returns:
- a repository
-
dereference
- Parameters:
schema
- a new schema to list- Returns:
- a repository
-
dereference
- Parameters:
uri
- the source of the schema used for de-referencing, optionally relative toJsonSchemaOptions
.schema
- a new schema to list- Returns:
- a repository
-
preloadMetaSchema
- Parameters:
fs
- The Vert.x file system to load the related schema meta files from classpath- Returns:
- a repository
-
preloadMetaSchema
- Parameters:
fs
- The Vert.x file system to load the related schema meta files from classpathdraft
- The draft version of the meta files to load- Returns:
- a repository
-
validator
- Parameters:
schema
- the start validation schema- Returns:
- the validator
-
validator
- Parameters:
ref
- the start validation reference in JSON pointer format- Returns:
- the validator
-
validator
- Parameters:
ref
- the start validation reference in JSON pointer formatoptions
- the options to be using on the validator instance- Returns:
- the validator
-
validator
- Parameters:
schema
- the start validation schemaoptions
- the options to be using on the validator instance- Returns:
- the validator
-
validator
public Validator validator(JsonSchema schema, io.vertx.json.schema.JsonSchemaOptions options, boolean dereference) - Parameters:
schema
- the start validation schemaoptions
- the options to be using on the validator instancedereference
- if true the schema will be dereferenced before validation- Returns:
- the validator
-
resolve
public io.vertx.core.json.JsonObject resolve(io.vertx.core.json.JsonObject schema) - Parameters:
schema
- the JSON object to resolve.- Returns:
- a new JSON object with all the
$ref
replaced by actual object references.
-
resolve
- Parameters:
ref
- the start resolution reference in JSON pointer format- Returns:
- a new representing the schema with
$ref
s replaced by their value.
-
resolve
- Parameters:
schema
-- Returns:
- a new representing the schema with
$ref
s replaced by their value.
-
find
- Parameters:
pointer
- the JSON pointer- Returns:
- the schema
-
newInstance
-