string Model
Modelsstring
string Model
Defines a model to enforce validation for string data.
Configuration (* required)
model: string
const
Specifies the model is a string
.
model: string
encoding: utf_8
minLength: 1
maxLength: 100
pattern: ^wait=\d+$
encoding
enum
[utf_8
,utf_16
]
Define character encoding for unicode.
minLength
integer
| Minimum:1
Define string minimum length.
maxLength
integer
| Minimum:1
Define string maximum length.
pattern
string
Define string regex pattern.