summaryrefslogtreecommitdiff
path: root/tools/binman/test/yaml/schema_notype.yaml
blob: 6b4d98ffa1895db370c7749e1f1def2ed7efc889 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# SPDX-License-Identifier: GPL-2.0+
#
# Test schema
#
---

definitions:
    u8:
        type: integer
        minimum: 0
        maximum: 0xff
    u16:
        type: integer
        minimum: 0
        maximum: 0xffff
    u32:
        type: integer
        minimum: 0
        maximum: 0xffffffff

type: object
properties:
    main-branch:
        type: object
        properties:
            obj:
                type: object
                properties:
                    a:
                        $ref: "#/definitions/u4"
                    b:
                        $ref: "#/definitions/u16"
            arr:
                type: array
                minItems: 4
                maxItems: 4
                items:
                    $ref: "#/definitions/u8"