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 io.vertx.lang.rx.TypeArg<Schema> |
__TYPE_ARG |
Constructor and Description |
---|
Schema(Object delegate) |
Schema(Schema delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Schema |
getDelegate() |
Object |
getJson()
Deprecated.
|
JsonPointer |
getScope()
Deprecated.
|
int |
hashCode() |
boolean |
isSync()
Deprecated.
|
static Schema |
newInstance(Schema arg) |
String |
toString() |
Future<Void> |
validateAsync(Object json)
Deprecated.
|
void |
validateSync(Object json)
Deprecated.
|
public static final io.vertx.lang.rx.TypeArg<Schema> __TYPE_ARG
public Schema getDelegate()
@Deprecated public 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()
Copyright © 2024 Eclipse. All rights reserved.