public interface SchemaRouter
JsonObject including on top or inner level some json schemas that could eventually parsed later.| Modifier and Type | Method and Description |
|---|---|
default SchemaRouter |
addJson(String uri,
JsonObject object)
Add one or more json documents including schemas on top or inner levels.
|
SchemaRouter |
addJson(URI uri,
JsonObject object)
Add one or more json documents including schemas on top or inner levels.
|
SchemaRouter |
addSchema(Schema schema)
Add a parsed schema to local cache.
|
static SchemaRouter |
create(HttpClient client,
FileSystem fs,
SchemaRouterOptions schemaRouterOptions)
Create a new
SchemaRouter |
static SchemaRouter |
create(Vertx vertx,
SchemaRouterOptions schemaRouterOptions)
Create a new
SchemaRouter |
List<Schema> |
registeredSchemas() |
Schema |
resolveCachedSchema(JsonPointer refPointer,
JsonPointer schemaScope,
SchemaParser parser)
Resolve cached schema based on refPointer.
|
Future<Schema> |
resolveRef(JsonPointer pointer,
JsonPointer scope,
SchemaParser schemaParser)
Resolve $ref.
|
Future<Schema> |
solveAllSchemaReferences(Schema schema)
Deeply resolve all references of the provided
schema |
Schema resolveCachedSchema(JsonPointer refPointer, JsonPointer schemaScope, SchemaParser parser) throws SchemaException
refPointer - schemaScope - parser - SchemaException - If was found an unparsed schema that is an invalid json schemaFuture<Schema> resolveRef(JsonPointer pointer, JsonPointer scope, SchemaParser schemaParser)
SchemaException or an IllegalArgumentExceptionpointer - scope - schemaParser - Schema or failed with a SchemaException or an IllegalArgumentExceptionSchemaRouter addSchema(Schema schema)
SchemaParser when a new schema is parsedschema - SchemaRouter addJson(URI uri, JsonObject object)
this#resolveCachedSchema(JsonPointer, JsonPointer, SchemaParser),
providing the correct refPointeruri - object - default SchemaRouter addJson(String uri, JsonObject object)
this#resolveCachedSchema(JsonPointer, JsonPointer, SchemaParser),
providing the correct refPointeruri - object - Future<Schema> solveAllSchemaReferences(Schema schema)
schemaschema - static SchemaRouter create(Vertx vertx, SchemaRouterOptions schemaRouterOptions)
SchemaRoutervertx - schemaRouterOptions - static SchemaRouter create(HttpClient client, FileSystem fs, SchemaRouterOptions schemaRouterOptions)
SchemaRouterclient - fs - schemaRouterOptions - Copyright © 2020 Eclipse. All rights reserved.