Settings API - Custom Container-Validator schema table
Custom Container-Validator (builtin:example.custom-validation.container-validator
)
Showcase of a Custom Container-Validator executed in the cluster.
It will check that the Start is before the End value.
For the Java implementation check out ExampleContainerValidatorSchema.java
It is closely linked to the json schema, you have to use the constraint on the type in the json file, and the containerTypeIdentifier in the Java class has to correspond with that type name. see ExampleContainerValidator.schema.json
Schema ID | Schema groups | Scope |
---|---|---|
builtin:example.custom-validation.container-validator |
| environment environment-default |
Parameters
Property | Label | Type | Description | Required |
---|---|---|---|---|
range | Range | NumberRange | A number range with a custom container validation attached to it. | required |
Request body objects
The NumberRange
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
start | Start | integer | Start of the range. | required |
end | End | integer | End of the range. Must be after Start. | required |