Debian Codegraph @

dtschema/meta-schemas/string-array.yaml

raw
1 # SPDX-License-Identifier: BSD-2-Clause
2 # Copyright 2018 Linaro Ltd.
3 # Copyright 2018-2019 Arm Ltd.
4 %YAML 1.2
5 ---
6 $id: http://devicetree.org/meta-schemas/string-array.yaml#
7 $schema: https://json-schema.org/draft/2019-09/schema
8 #type: object
9
10 if:
11 not:
12 required:
13 - minItems
14 - maxItems
15 then:
16 properties:
17 items:
18 type: array
19
20 allOf:
21 - $ref: '#/all-properties'
22
23 all-properties:
24 properties:
25 description: {}
26 minItems:
27 minimum: 1
28 maxItems:
29 minimum: 1
30 items:
31 if:
32 type: object
33 then:
34 $ref: '#/all-properties'
35 else:
36 type: array
37 minItems: 1
38 items:
39 $ref: '#/all-properties'
40 propertyNames:
41 enum: [ const, deprecated, description, enum, not, pattern ]
42 enum:
43 type: array
44 items:
45 type: string
46 pattern: '^[a-zA-Z0-9,.\-_ #+/]+$'
47 const:
48 type: string
49 pattern: '^[a-zA-Z0-9,.\-_ #+/]+$'
50 contains:
51 $ref: '#/all-properties'
52 default: {}
53 deprecated: {}
54 not: {}
55 pattern:
56 type: string
57
58 oneOf:
59 type: array
60 items:
61 $ref: '#/all-properties'
62 allOf:
63 type: array
64 items:
65 $ref: '#/all-properties'
66 anyOf:
67 type: array
68 items:
69 $ref: '#/all-properties'
70 $ref: {}
71
72 additionalItems:
73 type: boolean
74
75 additionalProperties: false