c10e2686bd8d8f4f22a9edcfaaf3b5fee4dee9e0
[yaffs-website] / web / core / modules / config / tests / config_schema_test / config / schema / config_schema_test.schema.yml
1 # Schema for the configuration files of the Configuration Schema Test module.
2
3 config_schema_test.someschema:
4   type: config_object
5   label: 'Schema test data'
6   mapping:
7     testitem:
8       label: 'Test item'
9     testlist:
10       label: 'Test list'
11
12 config_schema_test.someschema.with_parents:
13   label: 'Schema test data with parenting'
14   type: config_object
15   mapping:
16     one_level:
17       label: 'Parenting one level up'
18       type: mapping
19       mapping:
20         target_key:
21           label: 'Key used in parent relation'
22           type: string
23         testitem:
24           type: config_schema_test.someschema.with_parents.[%parent.target_key]
25     two_levels:
26       label: 'Parenting two levels up'
27       type: mapping
28       mapping:
29         target_key:
30           label: 'Key used in parent relation'
31           type: string
32         wrapper:
33           label: 'Wrapper'
34           type: mapping
35           mapping:
36             testitem:
37               type: config_schema_test.someschema.with_parents.[%parent.%parent.target_key]
38     three_levels:
39       label: 'Parenting three levels up'
40       type: mapping
41       mapping:
42         target_key:
43           label: 'Key used in parent relation'
44           type: string
45         wrapper_1:
46           label: 'Wrapper 1'
47           type: mapping
48           mapping:
49             wrapper_2:
50               label: 'Wrapper 2'
51               type: mapping
52               mapping:
53                 testitem:
54                   type: config_schema_test.someschema.with_parents.[%parent.%parent.%parent.target_key]
55
56 config_schema_test.someschema.with_parents.key_1:
57   label: 'Test item nested one level'
58   type: string
59 config_schema_test.someschema.with_parents.key_2:
60   label: 'Test item nested two levels'
61   type: string
62 config_schema_test.someschema.with_parents.key_3:
63   label: 'Test item nested three levels'
64   type: string
65
66 config_schema_test.someschema.somemodule.*.*:
67   type: config_object
68   label: 'Schema multiple filesystem marker test'
69   mapping:
70     testid:
71       type: string
72       label: 'ID'
73     testdescription:
74       type: text
75       label: 'Description'
76
77 config_schema_test.wildcard_fallback.*:
78   type: config_object
79   label: 'Schema wildcard fallback test'
80   mapping:
81     testid:
82       type: string
83       label: 'ID'
84     testdescription:
85       type: text
86       label: 'Description'
87
88 config_schema_test.schema_data_types:
89   type: config_object
90   label: 'Config test schema'
91   mapping:
92     config_schema_test_integer:
93       type: config_schema_test_integer
94     config_schema_test_integer_empty_string:
95       type: config_schema_test_integer
96     integer:
97       type: integer
98     null_integer:
99       type: integer
100     float:
101       type: float
102     null_float:
103       type: float
104     string:
105       type: string
106     null_string:
107       type: string
108     empty_string:
109       type: string
110     boolean:
111       type: boolean
112     no_type:
113       label: 'No label'
114     mapping:
115       type: mapping
116       mapping:
117         string:
118           type: string
119     sequence:
120       type: sequence
121       sequence:
122         type: boolean
123     sequence_bc:
124       type: sequence
125       sequence:
126         - type: boolean
127
128 config_schema_test_integer:
129   type: integer
130   label: 'Config test integer'
131
132 config_schema_test.ignore:
133   type: config_object
134   label: 'Ignore test'
135   mapping:
136     label:
137       type: label
138       label: 'Label'
139     irrelevant:
140       type: ignore
141       label: 'Irrelevant'
142     indescribable:
143       type: ignore
144       label: 'Indescribable'
145     weight:
146       type: integer
147       label: 'Weight'
148
149 config_schema_test.plugin_types:
150   type: config_object
151   mapping:
152     tests:
153       type: sequence
154       sequence:
155         type: test.plugin_types.[plugin_id]
156     test_with_parents:
157       type: sequence
158       sequence:
159         type: mapping
160         mapping:
161           plugin_id:
162             type: string
163           settings:
164             type: test_with_parents.plugin_types.[%parent.plugin_id]
165
166 test.plugin_types:
167   type: mapping
168   mapping:
169     plugin_id:
170       type: string
171
172 test.plugin_types.boolean:
173   type: mapping
174   mapping:
175     plugin_id:
176       type: string
177     value:
178       type: boolean
179
180 test.plugin_types.boolean:*:
181   type: test.plugin_types.boolean
182
183 test_with_parents.plugin_types.boolean:
184   type: mapping
185   mapping:
186     value:
187       type: boolean
188
189 test_with_parents.plugin_types.boolean:*:
190   type: test_with_parents.plugin_types.boolean
191
192 test.plugin_types.*:
193   type: mapping
194   mapping:
195     plugin_id:
196       type: string
197     value:
198       type: string
199
200 test_with_parents.plugin_types.*:
201   type: mapping
202   mapping:
203     value:
204       type: string
205
206 config_schema_test.hook:
207   type: string
208
209 config_test.dynamic.*.third_party.config_schema_test:
210   type: mapping
211   mapping:
212     integer:
213       type: integer
214     string:
215       type: string
216
217 wrapping.config_schema_test.plugin_types:
218   type: config_object
219   mapping:
220     tests:
221       type: sequence
222       sequence:
223         - type: wrapping.test.plugin_types.[plugin_id]
224
225 wrapping.test.plugin_types.*:
226   type: test.plugin_types.[plugin_id]
227   mapping:
228     wrapper_value:
229       type: string
230
231 test.plugin_types.wrapper:*:
232   type: test.plugin_types
233   mapping:
234     internal_value:
235       type: string
236
237 wrapping.config_schema_test.double_brackets:
238   type: config_object
239   mapping:
240     tests:
241       type: sequence
242       sequence:
243         - type: wrapping.test.double_brackets.[another_key]
244
245 wrapping.test.double_brackets.*:
246   type: test.double_brackets.[foo].[bar]
247   mapping:
248     wrapper_value:
249       type: string
250
251 test.double_brackets.cat.dog:
252   type: test.double_brackets
253   mapping:
254     another_key:
255       type: string
256     foo:
257       type: string
258     bar:
259       type: string
260
261 test.double_brackets.turtle.horse:
262   type: test.double_brackets
263   mapping:
264     another_key:
265       type: integer
266     foo:
267       type: string
268     bar:
269       type: string
270
271 test.double_brackets.*:
272   type: mapping
273
274 wrapping.config_schema_test.other_double_brackets:
275   type: config_object
276   mapping:
277     tests:
278       type: sequence
279       sequence:
280         - type: wrapping.test.other_double_brackets.[id]
281
282 wrapping.test.other_double_brackets.*:
283   type: test.double_brackets.[id]
284   mapping:
285     id:
286       type: string
287     foo:
288       type: string
289     bar:
290       type: string
291
292 test.double_brackets.cat:*.*:
293   type: test.double_brackets.breed
294
295 test.double_brackets.breed:
296   type: test.double_brackets
297   mapping:
298     breed:
299       type: string