Package | Description |
---|---|
be.ac.umons.jsonschematools |
Contains tools to manipulate and abstract a JSON Schema.
|
be.ac.umons.jsonschematools.generator |
Contains tools to generate documents satisfying a specified JSON schema.
|
be.ac.umons.jsonschematools.generator.exploration |
Contains a generator that produces documents by exhaustively exploring the JSON schema.
|
be.ac.umons.jsonschematools.generator.exploration.handlers |
Contains default implementations of handlers for the exploration generator.
|
be.ac.umons.jsonschematools.generator.random |
Contains a generator that produces documents by making random choices in the
JSON schema.
|
be.ac.umons.jsonschematools.generator.random.handlers |
Contains default implementations of handlers for the generator.
|
be.ac.umons.jsonschematools.validator |
Contains a tool to decide whether a JSON document satisfies a JSON schema.
|
be.ac.umons.jsonschematools.validator.handlers |
Contains default implementations of handlers for the validator.
|
Modifier and Type | Method and Description |
---|---|
JSONSchema |
JSONSchema.dropAllOfAnyOfOneOfAndNot()
Returns a copy of this schema without the sub-schemas for
allOf ,
anyOf , oneOf , and not . |
JSONSchema |
JSONSchemaStore.falseSchema() |
JSONSchema |
JSONSchema.getAdditionalProperties()
Returns the schema describing the additional properties of this schema.
|
JSONSchema |
JSONSchema.getAllOf()
Gets a single schema obtained by merging together all the sub-schemas in the
allOf array. |
JSONSchema |
JSONSchema.getRawNot()
Get the contents of the key
not , without any modifications. |
JSONSchema |
JSONSchema.getSubSchema(String key)
Gets the sub-schema for the key
key . |
JSONSchema |
JSONSchema.getSubSchemaProperties(String key)
Gets the sub-schema for the property
key . |
JSONSchema |
JSONSchemaStore.load(URI path)
Loads a JSON schema from a file stored in the computer's filesystem.
|
JSONSchema |
JSONSchemaStore.loadFromJSONObject(org.json.JSONObject schemaObject)
Loads a JSON schema directly from a JSON object
|
JSONSchema |
JSONSchema.merge(JSONSchema other)
Merge this schema with an other schema.
|
JSONSchema |
JSONSchemaStore.trueSchema() |
Modifier and Type | Method and Description |
---|---|
List<JSONSchema> |
JSONSchema.getAnyOf()
Gets a list containing one schema by element in the
anyOf array. |
List<JSONSchema> |
JSONSchema.getItemsArray()
Gets the sub-schemas for the items in an array.
|
Map<String,JSONSchema> |
JSONSchema.getNonRequiredProperties()
Gets the pairs key-value that are not required by this schema.
|
List<JSONSchema> |
JSONSchema.getNot()
Gets a list of sub-schemas, after propagating the
not inside
each sub-schema. |
List<JSONSchema> |
JSONSchema.getOneOf()
Gets a list containing one possible combination of the elements in the
oneOf array, by applying the XOR operation. |
Map<String,JSONSchema> |
JSONSchema.getRequiredProperties()
Gets the pairs key-value that are required by this schema.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
JSONSchemaStore.isFalseSchema(JSONSchema schema) |
static boolean |
JSONSchemaStore.isTrueSchema(JSONSchema schema) |
JSONSchema |
JSONSchema.merge(JSONSchema other)
Merge this schema with an other schema.
|
Modifier and Type | Method and Description |
---|---|
default Iterator<org.json.JSONObject> |
IGenerator.createIterator(JSONSchema schema)
Creates an iterator over the documents this generator can produce.
|
default Iterator<org.json.JSONObject> |
IGenerator.createIterator(JSONSchema schema,
boolean canGenerateInvalid)
Creates an iterator over the documents this generator can produce.
|
default Iterator<org.json.JSONObject> |
IGenerator.createIterator(JSONSchema schema,
int maxDocumentDepth)
Creates an iterator over the documents this generator can produce up to the
given document depth.
|
Iterator<org.json.JSONObject> |
IGenerator.createIterator(JSONSchema schema,
int documentDepth,
boolean canGenerateInvalid)
Creates an iterator over the documents this generator can produce up to the
given document depth.
|
Modifier and Type | Method and Description |
---|---|
Iterator<org.json.JSONObject> |
ExplorationGenerator.createIterator(JSONSchema schema,
int maxDocumentDepth,
boolean canGenerateInvalid) |
org.json.JSONObject |
ExplorationGenerator.generateDocument(JSONSchema schema,
int maxDocumentDepth,
boolean canGenerateInvalid,
ChoicesSequence choices) |
Optional<Object> |
ExplorationGenerator.generateValueAccordingToConstraints(JSONSchema schema,
int maxDocumentDepth,
boolean canGenerateInvalid,
ChoicesSequence choices)
Generates a value according to the constraints given in the schema and
following the sequence of choices.
|
Optional<Object> |
ExplorationGenerator.generateValueAccordingToConstraints(JSONSchema schema,
int maxDocumentDepth,
boolean canGenerateInvalid,
ChoicesSequence choices,
boolean mustBeObject) |
Modifier and Type | Method and Description |
---|---|
Optional<Object> |
DefaultObjectHandler.generate(JSONSchema schema,
ExplorationGenerator generator,
int maxDocumentDepth,
boolean canGenerateInvalid,
ChoicesSequence choices) |
Optional<Object> |
DefaultArrayHandler.generate(JSONSchema schema,
ExplorationGenerator generator,
int maxDocumentDepth,
boolean canGenerateInvalid,
ChoicesSequence choices) |
Optional<Object> |
DefaultBooleanHandler.generate(JSONSchema schema,
ExplorationGenerator generator,
int maxDocumentDepth,
boolean generateInvalid,
ChoicesSequence choices) |
Optional<Object> |
IHandler.generate(JSONSchema schema,
ExplorationGenerator generator,
int maxDocumentDepth,
boolean canGenerateInvalid,
ChoicesSequence choices)
Generates the value according to the schema.
|
Optional<Object> |
DefaultIntegerHandler.generate(JSONSchema schema,
ExplorationGenerator generator,
int maxDocumentDepth,
boolean canGenerateInvalid,
ChoicesSequence choices) |
Optional<Object> |
DefaultEnumHandler.generate(JSONSchema schema,
ExplorationGenerator generator,
int maxDocumentDepth,
boolean canGenerateInvalid,
ChoicesSequence choices) |
Optional<Object> |
DefaultStringHandler.generate(JSONSchema schema,
ExplorationGenerator generator,
int maxDocumentDepth,
boolean canGenerateInvalid,
ChoicesSequence choices) |
Optional<Object> |
DefaultNumberHandler.generate(JSONSchema schema,
ExplorationGenerator generator,
int maxDocumentDepth,
boolean canGenerateInvalid,
ChoicesSequence choices) |
Modifier and Type | Method and Description |
---|---|
Iterator<org.json.JSONObject> |
RandomGenerator.createIterator(JSONSchema schema,
int documentDepth,
boolean canGenerateInvalid) |
Iterator<org.json.JSONObject> |
RandomGenerator.createIterator(JSONSchema schema,
int documentDepth,
boolean canGenerateInvalid,
Random rand) |
org.json.JSONObject |
RandomGenerator.generate(JSONSchema schema,
int maxTreeSize,
boolean canGenerateInvalid) |
org.json.JSONObject |
RandomGenerator.generate(JSONSchema schema,
int maxTreeSize,
boolean canGenerateInvalid,
Random rand) |
Object |
RandomGenerator.generateAccordingToConstraints(JSONSchema schema,
int maxTreeSize,
boolean canGenerateInvalid,
Random rand)
Generates a value according to the constraints given by
schema . |
Modifier and Type | Method and Description |
---|---|
Object |
DefaultObjectHandler.generate(RandomGenerator generator,
JSONSchema schema,
int maxTreeSize,
boolean canGenerateInvalid,
Random rand) |
org.json.JSONArray |
DefaultArrayHandler.generate(RandomGenerator generator,
JSONSchema schema,
int maxTreeSize,
boolean canGenerateInvalid,
Random rand) |
Object |
DefaultBooleanHandler.generate(RandomGenerator generator,
JSONSchema schema,
int maxTreeSize,
boolean canGenerateInvalid,
Random rand) |
Object |
IHandler.generate(RandomGenerator generator,
JSONSchema schema,
int maxTreeSize,
boolean canGenerateInvalid,
Random rand) |
Object |
DefaultIntegerHandler.generate(RandomGenerator generator,
JSONSchema schema,
int maxTreeSize,
boolean canGenerateInvalid,
Random rand) |
Object |
DefaultEnumHandler.generate(RandomGenerator generator,
JSONSchema schema,
int maxTreeSize,
boolean canGenerateInvalid,
Random rand) |
Object |
DefaultStringHandler.generate(RandomGenerator generator,
JSONSchema schema,
int maxTreeSize,
boolean canGenerateInvalid,
Random rand) |
Object |
DefaultNumberHandler.generate(RandomGenerator generator,
JSONSchema schema,
int maxTreeSize,
boolean canGenerateInvalid,
Random rand) |
Modifier and Type | Method and Description |
---|---|
boolean |
Validator.validate(JSONSchema schema,
org.json.JSONObject document)
Checks whether the provided document satisfies the schema
|
boolean |
Validator.validateValue(JSONSchema schema,
Object value)
Validate a JSON value against a schema
|
Modifier and Type | Method and Description |
---|---|
boolean |
DefaultObjectHandler.validate(Validator validator,
JSONSchema schema,
Object object) |
boolean |
Handler.validate(Validator validator,
JSONSchema schema,
Object object) |
boolean |
DefaultArrayHandler.validate(Validator validator,
JSONSchema schema,
Object object) |
boolean |
DefaultBooleanHandler.validate(Validator validator,
JSONSchema schema,
Object object) |
boolean |
DefaultIntegerHandler.validate(Validator validator,
JSONSchema schema,
Object object) |
boolean |
DefaultEnumHandler.validate(Validator validator,
JSONSchema schema,
Object object) |
boolean |
DefaultStringHandler.validate(Validator validator,
JSONSchema schema,
Object object) |
boolean |
DefaultNumberHandler.validate(Validator validator,
JSONSchema schema,
Object object) |
Copyright © 2022. All rights reserved.