Optional

Indicates that the field is optional. This means that, if set to its initial state or not set, no validation will be done.

Examples

@Min(5)
@Optional
string text;

// ok
""

// not ok (min is 5)
"test"

Meta