42 lines
724 B
YAML
42 lines
724 B
YAML
|
rules:
|
||
|
name:
|
||
|
pattern: "[A-Z][a-z]+"
|
||
|
min: 3
|
||
|
max: 15
|
||
|
|
||
|
form:
|
||
|
validation: loose
|
||
|
fields:
|
||
|
text:
|
||
|
type: text
|
||
|
label: Text
|
||
|
placeholder: 'Enter your text'
|
||
|
|
||
|
enabled:
|
||
|
type: select
|
||
|
label: Enabled
|
||
|
default: true
|
||
|
data-options@: blueprint_data_option_test
|
||
|
|
||
|
user.name:
|
||
|
type: name
|
||
|
label: Name
|
||
|
default: John
|
||
|
validate:
|
||
|
type: name
|
||
|
|
||
|
user.country:
|
||
|
type: select
|
||
|
label: Enabled
|
||
|
default: fi
|
||
|
data-options@:
|
||
|
- blueprint_data_option_test
|
||
|
- { us: 'United States', fi: 'Finland', po: 'Poland' }
|
||
|
- true
|
||
|
|
||
|
undefined:
|
||
|
type: select
|
||
|
label: Undefined
|
||
|
data-options@: undefined_function
|
||
|
|