Package | Description |
---|---|
org.everit.json.schema | |
org.everit.json.schema.event | |
org.everit.json.schema.internal | |
org.everit.json.schema.loader |
Modifier and Type | Class and Description |
---|---|
static class |
Schema.Builder<S extends Schema>
Abstract builder class for the builder classes of
Schema subclasses. |
Modifier and Type | Class and Description |
---|---|
class |
ArraySchema
Array schema validator.
|
class |
BooleanSchema
Boolean schema validator.
|
class |
CombinedSchema
Validator for
allOf , oneOf , anyOf schemas. |
class |
ConditionalSchema
Validator for
if , then , else schemas. |
class |
ConstSchema |
class |
EmptySchema
A schema not specifying any restrictions, ie.
|
class |
EnumSchema
Enum schema validator.
|
class |
FalseSchema |
class |
NotSchema
Not schema validator. |
class |
NullSchema
Null schema validator. |
class |
NumberSchema
Number schema validator.
|
class |
ObjectSchema
Object schema validator.
|
class |
ReferenceSchema
This class is used by
SchemaLoader to resolve JSON pointers
during the construction of the schema. |
class |
StringSchema
String schema validator. |
class |
TrueSchema |
Modifier and Type | Method and Description |
---|---|
Schema |
ArraySchema.getAllItemSchema() |
Schema |
ArraySchema.getContainedItemSchema() |
Schema |
NotSchema.getMustNotMatch() |
Schema |
ObjectSchema.getPropertyNameSchema() |
Schema |
ReferenceSchema.getReferredSchema() |
Schema |
ArraySchema.getSchemaOfAdditionalItems() |
Schema |
ObjectSchema.getSchemaOfAdditionalProperties() |
Schema |
ValidationException.getViolatedSchema() |
Modifier and Type | Method and Description |
---|---|
Optional<Schema> |
ConditionalSchema.getElseSchema() |
Optional<Schema> |
ConditionalSchema.getIfSchema() |
List<Schema> |
ArraySchema.getItemSchemas() |
Map<Pattern,Schema> |
ObjectSchema.getPatternProperties()
Deprecated.
|
Map<String,Schema> |
ObjectSchema.getPropertySchemas() |
Map<String,Schema> |
ObjectSchema.getSchemaDependencies() |
Collection<Schema> |
CombinedSchema.getSubschemas() |
Optional<Schema> |
ConditionalSchema.getThenSchema() |
Modifier and Type | Method and Description |
---|---|
ArraySchema.Builder |
ArraySchema.Builder.addItemSchema(Schema itemSchema)
Adds an item schema for tuple validation.
|
ObjectSchema.Builder |
ObjectSchema.Builder.addPropertySchema(String propName,
Schema schema)
Adds a property schema.
|
ArraySchema.Builder |
ArraySchema.Builder.allItemSchema(Schema allItemSchema) |
ArraySchema.Builder |
ArraySchema.Builder.containsItemSchema(Schema contained) |
ConditionalSchema.Builder |
ConditionalSchema.Builder.elseSchema(Schema elseSchema) |
ConditionalSchema.Builder |
ConditionalSchema.Builder.ifSchema(Schema ifSchema) |
NotSchema.Builder |
NotSchema.Builder.mustNotMatch(Schema mustNotMatch) |
ObjectSchema.Builder |
ObjectSchema.Builder.patternProperty(Pattern pattern,
Schema schema)
Deprecated.
|
ObjectSchema.Builder |
ObjectSchema.Builder.patternProperty(Regexp pattern,
Schema schema) |
ObjectSchema.Builder |
ObjectSchema.Builder.patternProperty(String pattern,
Schema schema)
Deprecated.
|
void |
Validator.performValidation(Schema schema,
Object input) |
ValidationException |
ValidationException.prepend(String fragment,
Schema violatedSchema)
Creates a new
ViolationException instance based on this one, but with changed
JSON pointer and {link violated
schema . |
ObjectSchema.Builder |
ObjectSchema.Builder.propertyNameSchema(Schema propertyNameSchema) |
ObjectSchema.Builder |
ObjectSchema.Builder.schemaDependency(String ifPresent,
Schema expectedSchema) |
ArraySchema.Builder |
ArraySchema.Builder.schemaOfAdditionalItems(Schema schemaOfAdditionalItems) |
ObjectSchema.Builder |
ObjectSchema.Builder.schemaOfAdditionalProperties(Schema schemaOfAdditionalProperties) |
void |
ReferenceSchema.setReferredSchema(Schema referredSchema)
Called by
SchemaLoader.load() to set the referred root
schema after completing the loading process of the entire schema document. |
CombinedSchema.Builder |
CombinedSchema.Builder.subschema(Schema subschema) |
ConditionalSchema.Builder |
ConditionalSchema.Builder.thenSchema(Schema thenSchema) |
static void |
ValidationException.throwFor(Schema rootFailingSchema,
List<ValidationException> failures)
Sort of static factory method.
|
Modifier and Type | Method and Description |
---|---|
static CombinedSchema.Builder |
CombinedSchema.allOf(Collection<Schema> schemas) |
static CombinedSchema.Builder |
CombinedSchema.anyOf(Collection<Schema> schemas) |
static CombinedSchema.Builder |
CombinedSchema.builder(Collection<Schema> subschemas) |
static CombinedSchema.Builder |
CombinedSchema.oneOf(Collection<Schema> schemas) |
CombinedSchema.Builder |
CombinedSchema.Builder.subschemas(Collection<Schema> subschemas) |
Constructor and Description |
---|
ValidationException(Schema violatedSchema,
Class<?> expectedType,
Object actualValue)
Constructor, creates an instance with
keyword="type" . |
ValidationException(Schema violatedSchema,
Class<?> expectedType,
Object actualValue,
String keyword)
Deprecated.
|
ValidationException(Schema violatedSchema,
Class<?> expectedType,
Object actualValue,
String keyword,
String schemaLocation)
Constructor for type-mismatch failures.
|
ValidationException(Schema violatedSchema,
String message)
Deprecated.
use one of the constructors which explicitly specify the violated keyword instead
|
ValidationException(Schema violatedSchema,
String message,
List<ValidationException> causingExceptions)
Deprecated.
use one of the constructors which explicitly specify the keyword instead
|
ValidationException(Schema violatedSchema,
String message,
String keyword)
Deprecated.
|
ValidationException(Schema violatedSchema,
String message,
String keyword,
String schemaLocation)
Constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
ValidationEvent<S extends Schema> |
Modifier and Type | Field and Description |
---|---|
protected S |
ValidationEvent.schema |
Modifier and Type | Method and Description |
---|---|
Schema |
SchemaReferencedEvent.getReferredSchema() |
Schema |
CombinedSchemaValidationEvent.getSubSchema() |
Constructor and Description |
---|
CombinedSchemaMatchEvent(CombinedSchema schema,
Schema subSchema,
Object instance) |
CombinedSchemaMismatchEvent(CombinedSchema schema,
Schema subSchema,
Object instance,
ValidationException failure) |
CombinedSchemaValidationEvent(CombinedSchema schema,
Schema subSchema,
Object instance) |
SchemaReferencedEvent(ReferenceSchema schema,
Object instance,
Schema referredSchema) |
Modifier and Type | Method and Description |
---|---|
<K> void |
JSONPrinter.printSchemaMap(Map<K,Schema> input) |
Modifier and Type | Method and Description |
---|---|
static Schema |
SchemaLoader.load(org.json.JSONObject schemaJson)
Loads a JSON schema to a schema validator using a
default HTTP
client . |
static Schema |
SchemaLoader.load(org.json.JSONObject schemaJson,
SchemaClient schemaClient)
Creates Schema instance from its JSON representation.
|
Copyright © 2019 Everit Kft.. All rights reserved.