-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DISCO-2325] Create JSON Schema Validation for Control Mechanism (#93)
schema allocation file, gitignore adjustments, rename of original schema Closes #93
- Loading branch information
Showing
6 changed files
with
66 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"title": "Shepherd Partner Allocation", | ||
"description": "The schema for Allocation Configuration of Partners for Shepherd.", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"name": { | ||
"pattern": "^(SOV-)([0-9]{4})(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])(2[0-3]|[01][0-9])([0-5][0-9])([0-5][0-9])$", | ||
"description": "Allocation Update Title Label. SOV-<UTC datetime:YYYYMMDDHHMMSS>", | ||
"type": "string" | ||
}, | ||
"allocations": { | ||
"type": "array", | ||
"description": "Allocations distributing partner percentages for each tile, left to right.", | ||
"uniqueItems": true, | ||
"minItems": 2, | ||
"items": [ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"position": { | ||
"type": "integer", | ||
"description": "0-based position of tile from left side, 0 for the first slot." | ||
}, | ||
"allocation": { | ||
"type": "object", | ||
"properties": { | ||
"adm": { | ||
"type": "integer", | ||
"description": "adM percentage of allocation 0 - 100." | ||
}, | ||
"kevel": { | ||
"type": "integer", | ||
"description": "Kevel percentage of allocation 0 - 100." | ||
} | ||
}, | ||
"required": [ | ||
"adm", | ||
"kevel" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"position", | ||
"allocation" | ||
] | ||
} | ||
], | ||
"required": [ | ||
"name", | ||
"allocations" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters