discourse/spec/fixtures/theme_settings/invalid_settings.yaml

49 lines
926 B
YAML

no_match_setting:
type: bool
default: "string value"
no_default_setting:
type: string
invalid_type_setting:
type: listt
default: "name|age|last name"
default_out_of_range:
default: 100
min: 1
max: 20
string_default_out_of_range:
default: "abcdefg"
min: 20
invalid_default_objects_setting:
type: objects
default:
- min_5_chars_string: "12345"
children:
- required_integer: 1
- required_string: "some string"
min_5_chars_string: "123"
children:
- non_existent: "string"
schema:
name: parent
properties:
required_string:
type: string
required: true
min_5_chars_string:
type: string
validations:
min_length: 5
children:
type: objects
schema:
name: child
properties:
required_integer:
type: integer
required: true