tuweni / org.apache.tuweni.config / SchemaBuilder / validateProperty

validateProperty

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.

Parameters

key - The configuration property key.

validator - A validator for the property.

Exceptions

IllegalArgumentException - If the key cannot be parsed.

Return
This builder.