summaryrefslogtreecommitdiff
path: root/src/test/resources/schema/issue396-v7.json
blob: cfb7233412aa7e9014d65e2c374c566718b60113 (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
{
  "type": "object",
  "propertyNames": {
    "anyOf": [
      {
        "minLength": 10
      },
      {
        "$ref": "#/definitions/props"
      },
      {
        "oneOf": [
          {
            "enum": [
              "z",
              "a",
              "b"
            ]
          },
          {
            "$ref": "#/definitions/xyz"
          }
        ]
      }
    ]
  },
  "definitions": {
    "props": {
      "minLength": 2,
      "pattern": "[A-Z]{2,}"
    },
    "xyz": {
      "enum": [
        "x",
        "y",
        "z"
      ]
    }
  }
}