aboutsummaryrefslogtreecommitdiff
path: root/resources/input-file-schema.json
diff options
context:
space:
mode:
Diffstat (limited to 'resources/input-file-schema.json')
-rw-r--r--resources/input-file-schema.json32
1 files changed, 32 insertions, 0 deletions
diff --git a/resources/input-file-schema.json b/resources/input-file-schema.json
new file mode 100644
index 0000000..1b55e4f
--- /dev/null
+++ b/resources/input-file-schema.json
@@ -0,0 +1,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"
+ ]
+ }
+ ]
+} \ No newline at end of file