Specifies that a value must be an array and what type of elements it contains
Name | Type | Description | Notes |
---|---|---|---|
type | ArrayValueConstraintType | ||
element_type | GenericModel | ||
min_length | int | [optional] | |
max_length | int | [optional] | |
unique_values | bool | If true, all values in the array must be unique. | [optional] [default to False] |
contains | List[ArrayMustContainInner] | Only supported if the `elementType` is `boolean`, `numeric` or `string`. Specifies values the array attribute must contain. | [optional] |
from waylay.services.resources.models.array_value_constraint import ArrayValueConstraint
# TODO update the JSON string below
json = "{}"
# create an instance of ArrayValueConstraint from a JSON string
array_value_constraint_instance = ArrayValueConstraint.from_json(json)
# print the JSON string representation of the object
print ArrayValueConstraint.to_json()
# convert the object into a dict
array_value_constraint_dict = array_value_constraint_instance.to_dict()
# create an instance of ArrayValueConstraint from a dict
array_value_constraint_form_dict = array_value_constraint.from_dict(array_value_constraint_dict)