FormatValidator.formatName()
.FormatValidator.formatName()
and use SchemaLoader.SchemaLoaderBuilder.addFormatValidator(FormatValidator)
allOf
schemas.anyOf
schemas.ArraySchema
.InetAddress
instance if possible and returns it, or on failure it returns
Optional.empty()
.BooleanSchema
.JSONPointer
instance using the tokens previously set using the
JSONPointer.Builder.append(String)
method calls.ReferenceSchema
instance.JSONPointer.Builder
.allOf
, oneOf
, anyOf
schemas.CombinedSchema
.CombinedSchema
's given subschema matches the instance.CombinedSchema
's given subschema does not match the instance.if
, then
, else
schemas.ConditionalSchema
.JSONObject
and JSONArray
.SchemaClient
implementation which uses URL
for reading the remote content.Schema
instance defines any restrictions for the object property
denoted by field
.writer
."else"
schema."else"
schema.EmptySchema
.EnumSchema
.Optional.of(String.format("[%s] is not a valid URI", subject))
insteadFormatValidator
implementations supporting the
formatName
s mandated by the json schema spec.JSONPointer.QueryResult.containingDocument
.the pointer to the violating fragment
of the JSON document.JSONPointer.QueryResult.queryResult
.TypeBasedMultiplexer.orElse(Consumer)
or TypeBasedMultiplexer.requireAny()
if
obj
is an instance of predicateClass
.JSONObject
consumer setter."if"
schema matches."if"
schema.JSONPointer
instance.JSONPointer
if an error occurs
during evaluating a pointer.default HTTP
client
.Schema.Builder
instance from the schemaJson
schema definition.Optional.empty()
).Not
schema validator.NotSchema
.Null
schema validator.NullSchema
.NumberSchema
.JSONObject
and JSONArray
.ObjectSchema
.oneOf
schemas.obj
is an instance of any previously set classes (by TypeBasedMultiplexer.ifIs(Class)
or TypeBasedMultiplexer.ifObject()
), performs the mapped action of found or invokes orElseConsumer
with the obj
.ViolationException
instance based on this one, but with changed
JSON pointer
.ViolationException
instance based on this one, but with changed
JSON pointer
and {link violated
schema
.document
based on this pointer.document
.id
or ref
against a parent scope.SchemaLoader
to resolve JSON pointers
during the construction of the schema.ReferenceSchema
.obj
is an instance of any previously set classes (by TypeBasedMultiplexer.ifIs(Class)
or TypeBasedMultiplexer.ifObject()
), performs the mapped action of found or throws with a
SchemaException
.TypeBasedMultiplexer
to notify client(s) (which is
currently a schema loader instance) about resolution scope changes.id
or ref
value).id
or ref
value).Schema
subclasses.SchemaLoader
to fetch the contents denoted by remote JSON
pointer.SchemaLoader.load()
when it encounters
un-parseable schema JSON definition.SchemaLoader
.Schema.Builder.schemaLocation(SchemaLocation)
instead."$ref"
JSON reference is resolved.SchemaLoader.load()
to set the referred root
schema after completing the loading process of the entire schema document.String
schema validator.StringSchema
.StringSchemaLoader.StringSchemaLoader(LoadingState, Map)
insteadobj
is the previously set
predicateClass
."then"
schema."then"
schema.JSONArray#toList()
(which doesn't exist in the android version of org.json).JSONObject#toMap()
(which doesn't exist in the android version of org.json).null
keyOfObj
and null
id
.null id
.TypeBasedMultiplexer
to set actions (consumers) for matching
classes.ValidationException
if the implemented criterion is not fulfilled by the
subschemaCount
and the matchingSubschemaCount
.subject
.Schema
subclasses on validation failure.keyword="type"
.ValidatingVisitor
.Copyright © 2019 Everit Kft.. All rights reserved.