aboutsummaryrefslogtreecommitdiffstats
path: root/policy-utils/src/test/resources/coder/test.schema.json
blob: 60e70fb461a4957dc00a402cc58550069f32ddf5 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
  "definitions": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "http://onap.org/policy/common/coders/root.json",
  "type": "object",
  "title": "Test Schema",
  "required": [
    "aaString",
    "anInteger",
    "aaBoolean",
    "aaCollection"
  ],
  "properties": {
    "aaString": {
      "$id": "#/properties/aaString",
      "type": "string",
      "title": "an alphabetical string",
      "default": "",
      "examples": [
        "abcdef"
      ],
      "pattern": "^([a-z]*)$"
    },
    "anInteger": {
      "$id": "#/properties/anInteger",
      "type": "integer",
      "title": "a bounded integer",
      "default": 5,
      "examples": [
        98
      ],
      "minimum": 10,
      "maximum": 100
    },
    "aaBoolean": {
      "$id": "#/properties/aaBoolean",
      "type": "boolean",
      "title": "a boolean",
      "default": false,
      "examples": [
        true
      ]
    },
    "aaCollection": {
      "$id": "#/properties/aaCollection",
      "type": "array",
      "title": "a collection",
      "items": {
        "$id": "#/properties/aaCollection/items",
        "type": "object",
        "title": "the collection items",
        "required": [
          "subItemString"
        ],
        "properties": {
          "subItemString": {
            "$id": "#/properties/aaCollection/items/properties/subItemString",
            "type": "string",
            "title": "the subitem string",
            "default": "blah",
            "pattern": "^(.*)$"
          },
          "subItemInteger": {
            "$id": "#/properties/aaCollection/items/properties/subItemInteger",
            "type": "integer"
          }
        }
      }
    }
  }
}