aboutsummaryrefslogtreecommitdiff
path: root/resources/input-file-schema.json
blob: 1b55e4fe40676be58bc689d8d00553200e1be0f2 (plain) (blame)
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
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "definitions": {
    "card": {
      "type": "string",
      "pattern": "^(?i)([A|[1-9]|1[0-3]|J|Q|K])([C|D|H|S])$"
    }
  },
  "type": "object",
  "properties": {
    "tableau piles": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "$ref": "#/definitions/card"
        }
      }
    },
    "hole card": {
      "$ref": "#/definitions/card"
    }
  },
  "additionalProperties": false,
  "anyOf": [
    {
      "required": [
        "tableau piles"
      ]
    }
  ]
}