string
Creates a string property definition.
Example
property("email") {
string {
description = "Email address"
format = "email"
minLength = 5
maxLength = 100
}
}Content copied to clipboard
Return
A configured StringPropertyDefinition
Parameters
block
Configuration for the string property