Settings API - Constraints Example schema table
Constraints Example (builtin:example.constraints
)
Showcase of two property constraint validations
Schema ID | Schema groups | Scope |
---|---|---|
builtin:example.constraints |
| environment |
Parameters
Property | Label | Type | Description | Required |
---|---|---|---|---|
containerConstraintsLessThan | Container Constraints lessThanOrEqual & lessThan | ContainerConstraintsLessThan | - | required |
containerConstraintsGreaterThan | Container Constraints greaterThanOrEqual & greaterThan | ContainerConstraintsGreaterThan | - | required |
containerConstraintPropertyCountRange | Container Constraint propertyCountRange | ContainerConstraintPropertyCountRange | - | required |
Request body objects
The ContainerConstraintsLessThan
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
dateA | Date A | zoned_date_time | Should be lessThanOrEqual Date B | optional |
dateB | Date B | zoned_date_time | Should be lessThan Date C | optional |
dateC | Date C | zoned_date_time | Should be lessThanOrEqual Date D | optional |
dateD | Date D | zoned_date_time | - | optional |
The ContainerConstraintsGreaterThan
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
fieldA | Field A | float | Should be greaterThanOrEqual Field B | optional |
fieldB | Field B | float | Should be greaterThan Field C | optional |
fieldC | Field C | float | Should be greaterThanOrEqual Field D | optional |
fieldD | Field D | float | - | optional |
The ContainerConstraintPropertyCountRange
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
fieldA | Field A | float | At least one of this fields has to be set | optional |
fieldB | Field B | float | At least one of this fields has to be set | optional |