Package org.everit.json.schema
Class ArraySchema.Builder
- Enclosing class:
- ArraySchema
Builder class for
ArraySchema.-
Field Summary
Fields inherited from class org.everit.json.schema.Schema.Builder
unprocessedProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddItemSchema(Schema itemSchema) Adds an item schema for tuple validation.additionalItems(boolean additionalItems) allItemSchema(Schema allItemSchema) build()containsItemSchema(Schema contained) requiresArray(boolean requiresArray) schemaOfAdditionalItems(Schema schemaOfAdditionalItems) uniqueItems(boolean uniqueItems) Methods inherited from class org.everit.json.schema.Schema.Builder
defaultValue, description, id, nullable, readOnly, schemaLocation, schemaLocation, title, unprocessedProperties, writeOnly
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addItemSchema
Adds an item schema for tuple validation. The array items of the subject under validation will be matched to expected schemas by their index. In other words the {n}thaddItemSchema()invocation defines the expected schema of the {n}th item of the array being validated.- Parameters:
itemSchema- the schema of the next item.- Returns:
- this
-
additionalItems
-
allItemSchema
-
build
- Specified by:
buildin classSchema.Builder<ArraySchema>
-
maxItems
-
minItems
-
requiresArray
-
schemaOfAdditionalItems
-
uniqueItems
-
containsItemSchema
-