Neha Malcom Francis | 3b78894 | 2023-07-22 00:14:24 +0530 | [diff] [blame^] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
2 | # | ||||
3 | # Test schema | ||||
4 | # | ||||
5 | --- | ||||
6 | |||||
7 | definitions: | ||||
8 | u8: | ||||
9 | type: integer | ||||
10 | minimum: 0 | ||||
11 | maximum: 0xff | ||||
12 | u16: | ||||
13 | type: integer | ||||
14 | minimum: 0 | ||||
15 | maximum: 0xffff | ||||
16 | u32: | ||||
17 | type: integer | ||||
18 | minimum: 0 | ||||
19 | maximum: 0xffffffff | ||||
20 | |||||
21 | type: object | ||||
22 | properties: | ||||
23 | main-branch: | ||||
24 | type: object | ||||
25 | properties: | ||||
26 | obj: | ||||
27 | type: object | ||||
28 | properties: | ||||
29 | a: | ||||
30 | $ref: "#/definitions/u32" | ||||
31 | b: | ||||
32 | $ref: "#/definitions/u16" | ||||
33 | arr: | ||||
34 | type: array | ||||
35 | minItems: 4 | ||||
36 | maxItems: 4 | ||||
37 | items: | ||||
38 | $ref: "#/definitions/u8" | ||||
39 | another-arr: | ||||
40 | type: array | ||||
41 | minItems: 2 | ||||
42 | maxItems: 2 | ||||
43 | items: | ||||
44 | type: object | ||||
45 | properties: | ||||
46 | c: | ||||
47 | $ref: "#/definitions/u8" | ||||
48 | d: | ||||
49 | $ref: "#/definitions/u8" |