a6f3550c1a98ff602a51513f652dc20adf220e16
[yaffs-website] / web / core / modules / config / tests / config_test / config / schema / config_test.schema.yml
1 # Schema for the configuration files of the Configuration Test module.
2
3 config_test_dynamic:
4   type: config_entity
5   mapping:
6     id:
7       type: string
8       label: 'ID'
9     label:
10       type: label
11       label: 'Label'
12     weight:
13       type: integer
14       label: 'Weight'
15     style:
16       type: string
17       label: 'style'
18     size:
19       type: string
20       label: 'Size'
21     size_value:
22       type: string
23       label: 'Size value'
24     protected_property:
25       type: string
26       label: 'Protected property'
27
28 config_test.dynamic.*:
29   type: config_test_dynamic
30   label: 'Config test dynamic settings'
31
32 config_test.dynamic.*.*:
33   type: config_test_dynamic
34   label: 'Config test dynamic settings'
35
36 config_test.dynamic.*.third_party.node:
37   type: mapping
38   mapping:
39     foo:
40       type: string
41
42 config_test.query.*:
43   type: config_entity
44   mapping:
45     id:
46       type: string
47       label: 'ID'
48     label:
49       type: label
50       label: 'Label'
51     array:
52       type: sequence
53       label: 'Array level 1'
54       sequence:
55         type: sequence
56         label: 'Array level 2'
57         sequence:
58           type: integer
59           label: 'Value'
60     number:
61       type: integer
62       label: 'number'
63
64 config_test.types:
65   type: config_object
66   label: 'Configuration type'
67   mapping:
68     array:
69       type: sequence
70       label: 'Array'
71       sequence:
72         type: string
73         label: 'Item'
74     boolean:
75       type: boolean
76       label: 'Boolean'
77     float:
78       type: float
79       label: 'Float'
80     float_as_integer:
81       type: float
82       label: 'Float'
83     exp:
84       type: float
85       label: 'Exponential'
86     hex:
87       type: integer
88       label: 'Hexadecimal'
89     int:
90       type: integer
91       label: 'Integer'
92     octal:
93       type: integer
94       label: 'Octal'
95     string:
96       type: string
97       label: 'String'
98     string_int:
99       type: string
100       label: 'String integer'
101
102 config_test.no_status.default:
103   type: config_object
104   label: 'Configuration no status default'
105   mapping:
106     id:
107       type: string
108       label: 'ID'
109     label:
110       type: label
111       label: 'Label'
112
113 config_test.system:
114   type: config_object
115   label: 'Configuration system'
116   mapping:
117     foo:
118       type: string
119       label: 'Foo'
120     baz:
121       type: string
122       label: 'Baz'
123     '404':
124       type: string
125       label: '404'
126
127 config_test.new:
128   type: config_object
129   label: 'Configuration test'
130   mapping:
131      key:
132        type: string
133        label: 'Test setting'
134      new_key:
135        type: string
136        label: 'Test setting'
137      uuid:
138       type: uuid
139
140 config_test.old:
141   type: config_test.new
142
143 config_test.foo:
144   type: config_object
145   label: 'Configuration test'
146   mapping:
147      value:
148        type: mapping
149        label: 'Value'
150        mapping:
151          key:
152            type: string
153            label: 'Key'
154      label:
155        type: label
156        label: 'Label'
157
158 config_test.bar:
159   type: config_test.foo
160
161 system.action.*.third_party.config_test:
162   type: mapping
163   label: 'Third party setting for action entity'
164   mapping:
165     integer:
166       type: integer
167       label: 'Integer'
168
169 config_test.validation:
170   type: config_object
171   label: 'Configuration type'
172   constraints:
173     Callback:
174       callback: [\Drupal\config_test\ConfigValidation, validateMapping]
175   mapping:
176     llama:
177       type: string
178       constraints:
179         Callback:
180           callback: [\Drupal\config_test\ConfigValidation, validateLlama]
181     cat:
182       type: mapping
183       mapping:
184         type:
185           type: string
186           constraints:
187             Callback:
188               callback: [\Drupal\config_test\ConfigValidation, validateCats]
189         count:
190           type: integer
191           constraints:
192             Callback:
193               callback: [\Drupal\config_test\ConfigValidation, validateCatCount]
194     giraffe:
195       type: sequence
196       constraints:
197         Callback:
198           callback: [\Drupal\config_test\ConfigValidation, validateSequence]
199       sequence:
200         type: string
201         constraints:
202           Callback:
203             callback: [\Drupal\config_test\ConfigValidation, validateGiraffes]
204     uuid:
205       type: uuid