summaryrefslogtreecommitdiffstats
path: root/example/test/.schema.json
blob: e7c9d8f9f5cbcf1efd3f3ef36ed9a2aa5a9c4405 (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
{
  "$id": "https://json-hopper.s-ol.nu/test/schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Test",
  "type": "object",
  "properties": {
    "email": {
      "type": "string",
      "description": "The person's first name.",
      "format": "email"
    },
    "contents": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "keycaps",
          "0xC.pad",
          "0x33.board",
          "midi",
          "hid"
        ]
      }
    },
    "frequency": {
      "type": "string",
      "enum": [
        "release",
        "rare"
      ]
    }
  },
  "additionalProperties": false,
  "minProperties": 2
}