magicciv/tools/schemas/autoplay/save.json
Natalie f1f3716c1f fix(@projects/@magic-civilization): 🐛 update autoplay schema to array for layers
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-04-16 17:51:23 -07:00

26 lines
917 B
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://magic-civilization/schemas/autoplay/save.json",
"title": "AutoPlay Save Envelope",
"description": "Lenient envelope-only schema for saves/turn_NNNN.save files. Validates only the outer structure + top-level game_state keys.",
"type": "object",
"additionalProperties": true,
"required": ["version", "timestamp", "game_state"],
"properties": {
"version": { "type": "integer", "minimum": 1 },
"timestamp": {
"type": "integer",
"description": "Unix epoch seconds when the save was written"
},
"game_state": {
"type": "object",
"additionalProperties": true,
"required": ["turn_number", "players", "layers"],
"properties": {
"turn_number": { "type": "integer", "minimum": 0 },
"players": { "type": "array" },
"layers": { "type": "array" }
}
}
}
}