string

Creates a string property definition.

Example

property("email") {
string {
description = "Email address"
format = "email"
minLength = 5
maxLength = 100
}
}

Return

A configured StringPropertyDefinition

Parameters

block

Configuration for the string property

See also