public interface IHandler
| Modifier and Type | Method and Description |
|---|---|
Optional<Object> |
generate(JSONSchema schema,
ExplorationGenerator generator,
int maxDocumentDepth,
boolean canGenerateInvalid,
ChoicesSequence choices)
Generates the value according to the schema.
|
Optional<Object> generate(JSONSchema schema, ExplorationGenerator generator, int maxDocumentDepth, boolean canGenerateInvalid, ChoicesSequence choices) throws JSONSchemaException, org.json.JSONException
schema - The JSON schemagenerator - The generatormaxDocumentDepth - The maximal depth (number of nested objects and
arrays) of the documentcanGenerateInvalid - Whether the generator can produce invalid values
for the schemachoices - The sequence of choicesJSONSchemaExceptionorg.json.JSONExceptionCopyright © 2022. All rights reserved.