Package io.vertx.mutiny.json.schema
Class SchemaRepository
- java.lang.Object
-
- io.vertx.mutiny.json.schema.SchemaRepository
-
public class SchemaRepository extends Object
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 Modifier and Type Field Description static TypeArg<SchemaRepository>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description SchemaRepository(io.vertx.json.schema.SchemaRepository delegate)
SchemaRepository(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SchemaRepository
create(io.vertx.json.schema.JsonSchemaOptions options)
SchemaRepository
dereference(JsonSchema schema)
SchemaRepository
dereference(String uri, JsonSchema schema)
boolean
equals(Object o)
JsonSchema
find(String pointer)
io.vertx.json.schema.SchemaRepository
getDelegate()
int
hashCode()
static SchemaRepository
newInstance(io.vertx.json.schema.SchemaRepository arg)
io.vertx.core.json.JsonObject
resolve(JsonSchema schema)
io.vertx.core.json.JsonObject
resolve(String ref)
String
toString()
Validator
validator(JsonSchema schema)
Validator
validator(JsonSchema schema, io.vertx.json.schema.JsonSchemaOptions options)
Validator
validator(String ref)
Validator
validator(String ref, io.vertx.json.schema.JsonSchemaOptions options)
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<SchemaRepository> __TYPE_ARG
-
-
Constructor Detail
-
SchemaRepository
public SchemaRepository(io.vertx.json.schema.SchemaRepository delegate)
-
SchemaRepository
public SchemaRepository(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.json.schema.SchemaRepository getDelegate()
-
create
public static SchemaRepository create(io.vertx.json.schema.JsonSchemaOptions options)
- Parameters:
options
- the initial configuration- Returns:
- a repository
-
dereference
public SchemaRepository dereference(JsonSchema schema)
- Parameters:
schema
- a new schema to list- Returns:
- a repository
-
dereference
public SchemaRepository dereference(String uri, JsonSchema schema)
- Parameters:
uri
- the source of the schema used for de-referencing, optionally relative toJsonSchemaOptions
.schema
- a new schema to list- Returns:
- a repository
-
validator
public Validator validator(JsonSchema schema)
- Parameters:
schema
- the start validation schema- Returns:
- the validator
-
validator
public Validator validator(String ref)
- Parameters:
ref
- the start validation reference in JSON pointer format- Returns:
- the validator
-
validator
public Validator validator(JsonSchema schema, io.vertx.json.schema.JsonSchemaOptions options)
- Parameters:
schema
- the start validation schemaoptions
- the options to be using on the validator instance- Returns:
- the validator
-
validator
public Validator validator(String ref, io.vertx.json.schema.JsonSchemaOptions options)
- Parameters:
ref
- the start validation reference in JSON pointer formatoptions
- the options to be using on the validator instance- Returns:
- the validator
-
resolve
public io.vertx.core.json.JsonObject resolve(JsonSchema schema)
- Parameters:
schema
-- Returns:
- a new representing the schema with
$ref
s replaced by their value.
-
resolve
public io.vertx.core.json.JsonObject resolve(String ref)
- Parameters:
ref
- the start resolution reference in JSON pointer format- Returns:
- a new representing the schema with
$ref
s replaced by their value.
-
find
public JsonSchema find(String pointer)
- Parameters:
pointer
- the JSON pointer- Returns:
- the schema
-
newInstance
public static SchemaRepository newInstance(io.vertx.json.schema.SchemaRepository arg)
-
-