mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
48 lines
1.5 KiB
JSON
48 lines
1.5 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
"title": "RSI Image Format Validation Schema V1",
|
|
"description": "Robust Station Image",
|
|
"type": "object",
|
|
"definitions": {
|
|
"size": {
|
|
"type": "object",
|
|
"properties": {
|
|
"x": {"type": "integer", "minimum": 1},
|
|
"y": {"type": "integer", "minimum": 1}
|
|
},
|
|
"required": ["x","y"]
|
|
},
|
|
"directions": {
|
|
"type": "integer",
|
|
"enum": [1,4,8]
|
|
},
|
|
"state": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {"type": "string"},
|
|
"flags": {"type": "object"}, //To be de-serialized as a Dictionary
|
|
"directions": {"$ref": "#/definitions/directions"},
|
|
"delays": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"items": {
|
|
"type": "array",
|
|
"items": {"type": "number", "minimum": 0, "exclusiveMinimum": true} //number == float
|
|
}
|
|
}
|
|
},
|
|
"required": ["name"] //'delays' is marked as optional in the spec
|
|
}
|
|
},
|
|
"properties": {
|
|
"version": {"type": "integer", "minimum": 1, "maximum": 1},
|
|
"size": {"$ref": "#/definitions/size"},
|
|
"states": {
|
|
"type": "array",
|
|
"items": {"$ref": "#/definitions/state"},
|
|
"minItems": 1
|
|
}
|
|
},
|
|
"required": ["version","size","states"]
|
|
}
|