Package | Description |
---|---|
io.vertx.json.schema | |
io.vertx.json.schema.common | |
io.vertx.json.schema.common.dsl | |
io.vertx.json.schema.draft201909 | |
io.vertx.json.schema.draft7 | |
io.vertx.json.schema.openapi3 |
Modifier and Type | Method and Description |
---|---|
Schema |
SchemaParser.parse(Boolean jsonSchema)
Builds a true of false schema assigning a random scope
|
Schema |
SchemaParser.parse(Boolean jsonSchema,
io.vertx.core.json.pointer.JsonPointer schemaPointer)
Builds a true of false schema
|
Schema |
SchemaParser.parse(io.vertx.core.json.JsonObject jsonSchema)
Build a schema from provided json assigning a random scope.
|
Schema |
SchemaParser.parse(io.vertx.core.json.JsonObject jsonSchema,
io.vertx.core.json.pointer.JsonPointer schemaPointer)
Build a schema from provided json.
|
Schema |
SchemaParser.parseFromString(String unparsedJson)
Build a schema from provided unparsed json assigning a random scope.
|
Schema |
SchemaParser.parseFromString(String unparsedJson,
io.vertx.core.json.pointer.JsonPointer schemaPointer)
Build a schema from provided unparsed json.
|
Schema |
SchemaRouter.resolveCachedSchema(io.vertx.core.json.pointer.JsonPointer refPointer,
io.vertx.core.json.pointer.JsonPointer schemaScope,
SchemaParser parser)
Resolve cached schema based on refPointer.
|
Schema |
ValidationException.schema()
Returns the schema that failed the validation
|
Modifier and Type | Method and Description |
---|---|
List<Schema> |
SchemaRouter.registeredSchemas() |
io.vertx.core.Future<Schema> |
SchemaRouter.resolveRef(io.vertx.core.json.pointer.JsonPointer pointer,
io.vertx.core.json.pointer.JsonPointer scope,
SchemaParser schemaParser)
Resolve $ref.
|
Modifier and Type | Method and Description |
---|---|
SchemaRouter |
SchemaRouter.addSchema(Schema schema,
io.vertx.core.json.pointer.JsonPointer... aliasScopes)
Add a parsed schema to this router.
|
SchemaRouter |
SchemaRouter.addSchemaAlias(Schema schema,
String alias)
Add an alias to a schema already registered in this router (this alias can be solved only from schema scope).
|
SchemaRouter |
SchemaRouter.addSchemaWithScope(Schema schema,
io.vertx.core.json.pointer.JsonPointer scope)
Add a parsed schema to this router.
|
void |
ValidationException.setSchema(Schema schema) |
Modifier and Type | Method and Description |
---|---|
void |
SchemaRouter.resolveRef(io.vertx.core.json.pointer.JsonPointer pointer,
io.vertx.core.json.pointer.JsonPointer scope,
SchemaParser schemaParser,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Schema>> handler)
Like
SchemaRouter.resolveRef(JsonPointer, JsonPointer, SchemaParser) but with a direct callback. |
Modifier and Type | Interface and Description |
---|---|
interface |
SchemaInternal
Schema should implement sync and async validator too
|
Modifier and Type | Class and Description |
---|---|
class |
FalseSchema |
class |
RecursiveRefSchema |
class |
RefSchema |
class |
SchemaImpl |
class |
TrueSchema |
Modifier and Type | Method and Description |
---|---|
Schema |
SchemaRouterImpl.resolveCachedSchema(io.vertx.core.json.pointer.JsonPointer refPointer,
io.vertx.core.json.pointer.JsonPointer scope,
SchemaParser parser) |
Modifier and Type | Method and Description |
---|---|
List<Schema> |
SchemaRouterImpl.registeredSchemas() |
io.vertx.core.Future<Schema> |
SchemaRouterImpl.resolveRef(io.vertx.core.json.pointer.JsonPointer pointer,
io.vertx.core.json.pointer.JsonPointer scope,
SchemaParser schemaParser) |
io.vertx.core.Future<Schema> |
SchemaRouterImpl.solveAllSchemaReferences(Schema schema)
Deeply resolve all references of the provided
schema |
Modifier and Type | Method and Description |
---|---|
SchemaRouter |
SchemaRouterImpl.addSchema(Schema schema,
io.vertx.core.json.pointer.JsonPointer... aliasScope) |
SchemaRouter |
SchemaRouterImpl.addSchemaAlias(Schema schema,
String alias) |
SchemaRouter |
SchemaRouterImpl.addSchemaWithScope(Schema schema,
io.vertx.core.json.pointer.JsonPointer scope) |
void |
SchemaRouterImpl.insertSchema(io.vertx.core.json.pointer.JsonPointer pointer,
io.vertx.json.schema.common.RouterNode initialNode,
Schema schema) |
io.vertx.core.Future<Schema> |
SchemaRouterImpl.solveAllSchemaReferences(Schema schema)
Deeply resolve all references of the provided
schema |
Modifier and Type | Method and Description |
---|---|
void |
SchemaRouterImpl.resolveRef(io.vertx.core.json.pointer.JsonPointer pointer,
io.vertx.core.json.pointer.JsonPointer scope,
SchemaParser schemaParser,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Schema>> handler) |
Modifier and Type | Method and Description |
---|---|
Schema |
SchemaBuilder.build(SchemaParser parser) |
Modifier and Type | Method and Description |
---|---|
static Schema |
Draft201909SchemaParser.parse(io.vertx.core.Vertx vertx,
io.vertx.core.json.JsonObject schema,
URI scope)
Parse a draft2019-09 schema
|
Modifier and Type | Method and Description |
---|---|
static Schema |
Draft7SchemaParser.parse(io.vertx.core.Vertx vertx,
io.vertx.core.json.JsonObject schema,
URI scope)
Parse a draft-7 schema
|
Modifier and Type | Method and Description |
---|---|
static Schema |
OpenAPI3SchemaParser.parse(io.vertx.core.Vertx vertx,
io.vertx.core.json.JsonObject schema,
URI scope)
Parse an OpenAPI 3 schema
|
Copyright © 2020 Eclipse. All rights reserved.