fun validateProperty(key: String!, validator: PropertyValidator<Any!>!): SchemaBuilder!
(source)
Add a property validation to this schema.
Multiple validators can be provided for the same key by invoking this method multiple times.
key
- String!: The configuration property key.
validator
- PropertyValidator<Any!>!: A validator for the property.
IllegalArgumentException
- If the key cannot be parsed.
Return
SchemaBuilder!: This builder.