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(SchemaRepository delegate) |
| 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.
|
boolean |
equals(Object o) |
JsonSchema |
find(String pointer)
Look up a schema using a JSON pointer notation
|
SchemaRepository |
getDelegate() |
int |
hashCode() |
static SchemaRepository |
newInstance(SchemaRepository arg) |
JsonObject |
resolve(JsonSchema schema)
Tries to resolve all internal and repository local references.
|
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,
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,
JsonSchemaOptions options)
A new validator instance overriding this repository options.
|
public static final io.vertx.lang.rx.TypeArg<SchemaRepository> __TYPE_ARG
public SchemaRepository(SchemaRepository delegate)
public SchemaRepository(Object delegate)
public SchemaRepository getDelegate()
public static SchemaRepository create(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, JsonSchemaOptions options)
schema - the start validation schemaoptions - the options to be using on the validator instancepublic Validator validator(String ref, JsonSchemaOptions options)
ref - the start validation reference in JSON pointer formatoptions - the options to be using on the validator instancepublic JsonObject resolve(JsonSchema schema)
schema - $refs replaced by their value.public JsonObject resolve(String ref)
ref - the start resolution reference in JSON pointer format$refs replaced by their value.public JsonSchema find(String pointer)
pointer - the JSON pointerpublic static SchemaRepository newInstance(SchemaRepository arg)
Copyright © 2023 Eclipse. All rights reserved.