Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<SchemaParser> |
__TYPE_ARG |
Constructor and Description |
---|
SchemaParser(Object delegate) |
SchemaParser(SchemaParser delegate) |
Modifier and Type | Method and Description |
---|---|
static SchemaParser |
createDraft201909SchemaParser(SchemaRouter router)
Create a new
SchemaParser for Json Schema Draft2019-09 schemas |
static SchemaParser |
createDraft7SchemaParser(SchemaRouter router)
Create a new
SchemaParser for Json Schema Draft-7 schemas |
static SchemaParser |
createOpenAPI3SchemaParser(SchemaRouter router)
Create a new
SchemaParser for OpenAPI schemas |
boolean |
equals(Object o) |
SchemaParser |
getDelegate() |
SchemaRouter |
getSchemaRouter()
Get schema router registered to this schema parser
|
int |
hashCode() |
static SchemaParser |
newInstance(SchemaParser arg) |
Schema |
parse(Boolean jsonSchema)
Builds a true of false schema assigning a random scope
|
Schema |
parse(Boolean jsonSchema,
JsonPointer schemaPointer)
Builds a true of false schema
|
Schema |
parse(JsonObject jsonSchema)
Build a schema from provided json assigning a random scope.
|
Schema |
parse(JsonObject jsonSchema,
JsonPointer schemaPointer)
Build a schema from provided json.
|
Schema |
parseFromString(String unparsedJson)
Build a schema from provided unparsed json assigning a random scope.
|
Schema |
parseFromString(String unparsedJson,
JsonPointer schemaPointer)
Build a schema from provided unparsed json.
|
String |
toString() |
SchemaParser |
withStringFormatValidator(String formatName,
java.util.function.Predicate<String> predicate)
Add a custom format validator
|
SchemaParser |
withValidatorFactory(ValidatorFactory factory)
Add a to this schema parser to support custom keywords
|
public static final io.vertx.lang.rx.TypeArg<SchemaParser> __TYPE_ARG
public SchemaParser(SchemaParser delegate)
public SchemaParser(Object delegate)
public SchemaParser getDelegate()
public Schema parse(JsonObject jsonSchema)
jsonSchema
- JSON representing the schemapublic Schema parse(JsonObject jsonSchema, JsonPointer schemaPointer)
jsonSchema
- JSON representing the schemaschemaPointer
- Scope of schema. Must be a JSONPointer with absolute URIpublic Schema parse(Boolean jsonSchema)
jsonSchema
- JSON representing the schemapublic Schema parse(Boolean jsonSchema, JsonPointer schemaPointer)
jsonSchema
- JSON representing the schemaschemaPointer
- Scope of schema. Must be a JSONPointer with absolute URIpublic Schema parseFromString(String unparsedJson)
unparsedJson
- Unparsed JSON representing the schema.public Schema parseFromString(String unparsedJson, JsonPointer schemaPointer)
unparsedJson
- Unparsed JSON representing the schema.schemaPointer
- Scope of schema. Must be a JSONPointer with absolute URIpublic SchemaRouter getSchemaRouter()
public static SchemaParser createOpenAPI3SchemaParser(SchemaRouter router)
SchemaParser
for OpenAPI schemasrouter
- public static SchemaParser createDraft7SchemaParser(SchemaRouter router)
SchemaParser
for Json Schema Draft-7 schemasrouter
- public static SchemaParser createDraft201909SchemaParser(SchemaRouter router)
SchemaParser
for Json Schema Draft2019-09 schemasrouter
- public SchemaParser withValidatorFactory(ValidatorFactory factory)
factory
- new factorypublic SchemaParser withStringFormatValidator(String formatName, java.util.function.Predicate<String> predicate)
formatName
- format namepredicate
- predicate for the new formatpublic static SchemaParser newInstance(SchemaParser arg)
Copyright © 2022 Eclipse. All rights reserved.