public class SchemaRepository extends Object
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<SchemaRepository> |
__TYPE_ARG |
Constructor and Description |
---|
SchemaRepository(Object delegate) |
SchemaRepository(io.vertx.json.schema.SchemaRepository delegate) |
Modifier and Type | Method and Description |
---|---|
static SchemaRepository |
create(io.vertx.json.schema.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.
|
boolean |
equals(Object o) |
JsonSchema |
find(String pointer)
Look up a schema using a JSON pointer notation
|
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)
Tries to resolve all internal and repository local references.
|
io.vertx.core.json.JsonObject |
resolve(String ref)
Tries to resolve all internal and repository local references.
|
String |
toString() |
Validator |
validator(JsonSchema schema)
A new validator instance using this repository options.
|
Validator |
validator(JsonSchema schema,
io.vertx.json.schema.JsonSchemaOptions options)
A new validator instance overriding this repository options.
|
Validator |
validator(String ref)
A new validator instance using this repository options.
|
Validator |
validator(String ref,
io.vertx.json.schema.JsonSchemaOptions options)
A new validator instance overriding this repository options.
|
public static final io.vertx.lang.rx.TypeArg<SchemaRepository> __TYPE_ARG
public SchemaRepository(io.vertx.json.schema.SchemaRepository delegate)
public SchemaRepository(Object delegate)
public io.vertx.json.schema.SchemaRepository getDelegate()
public static SchemaRepository create(io.vertx.json.schema.JsonSchemaOptions options)
options
- the initial configurationpublic SchemaRepository dereference(JsonSchema schema)
schema
- a new schema to listpublic SchemaRepository dereference(String uri, JsonSchema schema)
uri
- the source of the schema used for de-referencing, optionally relative to JsonSchemaOptions
.schema
- a new schema to listpublic Validator validator(JsonSchema schema)
schema
- the start validation schemapublic Validator validator(String ref)
ref
- the start validation reference in JSON pointer formatpublic Validator validator(JsonSchema schema, io.vertx.json.schema.JsonSchemaOptions options)
schema
- the start validation schemaoptions
- the options to be using on the validator instancepublic Validator validator(String ref, io.vertx.json.schema.JsonSchemaOptions options)
ref
- the start validation reference in JSON pointer formatoptions
- the options to be using on the validator instancepublic io.vertx.core.json.JsonObject resolve(JsonSchema schema)
schema
- $ref
s replaced by their value.public io.vertx.core.json.JsonObject resolve(String ref)
ref
- the start resolution reference in JSON pointer format$ref
s replaced by their value.public JsonSchema find(String pointer)
pointer
- the JSON pointerpublic static SchemaRepository newInstance(io.vertx.json.schema.SchemaRepository arg)
Copyright © 2022 Eclipse. All rights reserved.