property
Defines a property in the schema.
The property name is specified as a parameter, and the property type and constraints are defined in the block using PropertyBuilder.
Example
property("email") {
required = true
string {
description = "Email address"
format = "email"
}
}Content copied to clipboard
Parameters
name
The property name
block
Configuration block for the property