public class Schema extends Object
A schema could have two states:
NoSyncValidationException
To check the schema state you can use method . Note that invoking validateAsync(java.lang.Object) generally doesn't have any additional overhead than invoking validateSync(java.lang.Object).
The schema can mutate the state in time, e.g. if you have a schema that is asynchronous because of a $ref,
after the first validation the external schema is cached inside SchemaRouter and this schema will switch to synchronous state
original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description |
|---|---|
static TypeArg<Schema> |
__TYPE_ARG |
| Constructor and Description |
|---|
Schema(Object delegate) |
Schema(io.vertx.json.schema.Schema delegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
io.vertx.json.schema.Schema |
getDelegate() |
Object |
getJson()
Deprecated.
|
JsonPointer |
getScope()
Deprecated.
|
int |
hashCode() |
boolean |
isSync()
Deprecated.
|
static Schema |
newInstance(io.vertx.json.schema.Schema arg) |
String |
toString() |
io.vertx.core.Future<Void> |
validateAsync(Object json)
Deprecated.
|
void |
validateSync(Object json)
Deprecated.
|
public Schema(io.vertx.json.schema.Schema delegate)
public Schema(Object delegate)
public io.vertx.json.schema.Schema getDelegate()
@Deprecated public io.vertx.core.Future<Void> validateAsync(Object json)
Note: If the schema is synchronous, this method will call internally
json - input to validateValidationException if json doesn't match the schema, otherwise a succeeded future.@Deprecated public void validateSync(Object json)
ValidationException if json doesn't match the schema.json - input to validate@Deprecated public JsonPointer getScope()
@Deprecated public Object getJson()
@Deprecated public boolean isSync()
public static Schema newInstance(io.vertx.json.schema.Schema arg)
Copyright © 2022 Eclipse. All rights reserved.