Class ArraySchema
java.lang.Object
com.fasterxml.jackson.module.jsonSchema.jakarta.JsonSchema
com.fasterxml.jackson.module.jsonSchema.jakarta.types.SimpleTypeSchema
com.fasterxml.jackson.module.jsonSchema.jakarta.types.ContainerTypeSchema
com.fasterxml.jackson.module.jsonSchema.jakarta.types.ArraySchema
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis provides a definition for additional items in an array instance when tuple definitions of the items is provided.static classWhen this attribute value is an array of jsonSchemas and the instance value is an array, each position in the instance array MUST conform to the jsonSchema in the corresponding position for this array.static classThis attribute defines the allowed items in an instance array, and MUST be a jsonSchema or an array of jsonSchemas.static classstatic classThis can be false to indicate additional items in the array are not allowedstatic classor it can be a jsonSchema that defines the jsonSchema of the additional items.static classWhen this attribute value is a jsonSchema and the instance value is an array, then all the items in the array MUST be valid according to the jsonSchema. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ArraySchema.AdditionalItemsprotected ArraySchema.Itemsprotected IntegerThis attribute defines the maximum number of values in an arrayprotected IntegerThis attribute defines the minimum number of values in an arrayprotected BooleanThis attribute indicates that all items in an array instance MUST be unique (contains no two identical values).Fields inherited from class ContainerTypeSchema
enums, oneOfFields inherited from class SimpleTypeSchema
defaultdefault, links, pathStart, title -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean_equals(ArraySchema that) Attempt to return this JsonSchema as anArraySchemabooleangetItems()com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypesgetType()booleandetermine if this JsonSchema is anArraySchema.voidsetAdditionalItems(ArraySchema.AdditionalItems additionalItems) voidsetItems(ArraySchema.Items items) voidsetItemsSchema(JsonSchema jsonSchema) voidsetMaxItems(Integer maxItems) voidsetMinItems(Integer minItems) voidsetUniqueItems(Boolean uniqueItems) Methods inherited from class ContainerTypeSchema
_equals, asContainerSchema, asContainerTypeSchema, getEnums, getOneOf, isContainerTypeSchema, setEnums, setOneOfMethods inherited from class SimpleTypeSchema
_equals, asSimpleTypeSchema, getDefault, getLinks, getPathStart, getTitle, isSimpleTypeSchema, setDefault, setLinks, setPathStart, setTitleMethods inherited from class JsonSchema
_equals, arraysEqual, asAnySchema, asBooleanSchema, asIntegerSchema, asNullSchema, asNumberSchema, asObjectSchema, asStringSchema, asUnionTypeSchema, asValueSchemaSchema, asValueTypeSchema, enrichWithBeanProperty, equals, get$ref, get$schema, getDescription, getDisallow, getExtends, getId, getReadonly, getRequired, isAnySchema, isBooleanSchema, isIntegerSchema, isNullSchema, isNumberSchema, isObjectSchema, isStringSchema, isUnionTypeSchema, isValueTypeSchema, minimalForFormat, set$ref, set$schema, setDescription, setDisallow, setExtends, setId, setReadonly, setRequired
-
Field Details
-
additionalItems
-
items
-
maxItems
This attribute defines the maximum number of values in an array -
minItems
This attribute defines the minimum number of values in an array -
uniqueItems
This attribute indicates that all items in an array instance MUST be unique (contains no two identical values). Two instance are consider equal if they are both of the same type and: are null; or are booleans/numbers/strings and have the same value; or are arrays, contains the same number of items, and each item in the array is equal to the corresponding item in the other array; or are objects, contains the same property names, and each property in the object is equal to the corresponding property in the other object.
-
-
Constructor Details
-
ArraySchema
public ArraySchema()
-
-
Method Details
-
asArraySchema
Description copied from class:JsonSchemaAttempt to return this JsonSchema as anArraySchema- Overrides:
asArraySchemain classJsonSchema- Returns:
- this as an ArraySchema if possible, or null otherwise
-
getAdditionalItems
-
getItems
-
getMaxItems
-
getMinItems
-
getType
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes getType()- Specified by:
getTypein classJsonSchema
-
getUniqueItems
-
isArraySchema
public boolean isArraySchema()Description copied from class:JsonSchemadetermine if this JsonSchema is anArraySchema.- Overrides:
isArraySchemain classJsonSchema- Returns:
- true if this JsonSchema is an ArraySchema, false otherwise
-
setAdditionalItems
-
setItems
-
setItemsSchema
-
setMaxItems
-
setMinItems
-
setUniqueItems
-
equals
- Overrides:
equalsin classContainerTypeSchema
-
_equals
-