- All Superinterfaces:
Prototype.Api,SchemaItem
- All Known Implementing Classes:
SchemaArray.BuilderBase.SchemaArrayImpl
Json schema related to the array.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forSchemaArray.static classSchemaArray.BuilderBase<BUILDER extends SchemaArray.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends SchemaArray> Fluent API builder base forSchemaArray. -
Method Summary
Modifier and TypeMethodDescriptionstatic SchemaArray.Builderbuilder()Create a new fluent API builder to customize configuration.static SchemaArray.Builderbuilder(SchemaArray instance) Create a new fluent API builder from an existing instance.static SchemaArraycreate()Create a new instance with default values.default voidgenerate(Hson.Struct.Builder builder) items()Json type used to validate the content of the array.Array items should be validated as an arrays.Array items should be validated as a boolean.Array items should be validated as an integer.Array items should be validated as an null.Array items should be validated as a number.Array items should be validated as an objects.Array items should be validated as a string.maxItems()Max number of items an array can have.minItems()Min number of items an array can have.Whether the array can contain duplicate values.Methods inherited from interface io.helidon.json.schema.SchemaItem
description, required, schemaType, title
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance with default values.- Returns:
- a new instance
-
maxItems
Max number of items an array can have.- Returns:
- max array size
-
minItems
Min number of items an array can have.- Returns:
- min array size
-
uniqueItems
Whether the array can contain duplicate values.- Returns:
- duplicate values allowed
-
items
Optional<SchemaItem> items()Json type used to validate the content of the array. It is filled by the more specific configured schema item type.- Returns:
- configured items schema type
-
itemsObject
Optional<SchemaObject> itemsObject()Array items should be validated as an objects.- Returns:
- json object schema
-
itemsArray
Optional<SchemaArray> itemsArray()Array items should be validated as an arrays.- Returns:
- json array schema
-
itemsNumber
Optional<SchemaNumber> itemsNumber()Array items should be validated as a number.- Returns:
- json number schema
-
itemsInteger
Optional<SchemaInteger> itemsInteger()Array items should be validated as an integer.- Returns:
- json integer schema
-
itemsString
Optional<SchemaString> itemsString()Array items should be validated as a string.- Returns:
- json string schema
-
itemsBoolean
Optional<SchemaBoolean> itemsBoolean()Array items should be validated as a boolean.- Returns:
- json boolean schema
-
itemsNull
Optional<SchemaNull> itemsNull()Array items should be validated as an null.- Returns:
- json array schema
-
schemaType
SchemaType schemaType() -
generate
-