diff options
| author | Charlie Blake | 2018-07-10 16:39:37 +0100 |
|---|---|---|
| committer | Charlie Blake | 2018-07-10 16:39:37 +0100 |
| commit | 40feff1bdda4bb04f0bd9dd222b512872ee16789 (patch) | |
| tree | d9d4020ef566ed2e1ad40850a846cb496d751d6e /src | |
| parent | Merge pull request #75 from thecharlesblake/refactor-rules-json (diff) | |
| download | metasol-40feff1bdda4bb04f0bd9dd222b512872ee16789.tar.gz metasol-40feff1bdda4bb04f0bd9dd222b512872ee16789.zip | |
Update rules schema for gaps
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/input-output/input/json-parsing/rules_parser.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/main/input-output/input/json-parsing/rules_parser.cpp b/src/main/input-output/input/json-parsing/rules_parser.cpp index c47ed2b..55a414c 100644 --- a/src/main/input-output/input/json-parsing/rules_parser.cpp +++ b/src/main/input-output/input/json-parsing/rules_parser.cpp @@ -462,6 +462,32 @@ string rules_parser::rules_schema_json() { }, "additionalProperties": false }, + "sequence": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "minimum": 0 + }, + "direction": { + "type": "string", + "enum": [ + "L", + "R", + "LR" + ] + }, + "build policy": { + "type": "string", + "enum": [ + "any-suit", + "red-black", + "same-suit" + ] + } + }, + "additionalProperties": false + }, "max rank": { "type": "integer", "minimum": 1, |
