Files
browser/plugins/examples/scum-server-plugin/schemas/bridge/flags.snapshot.schema.json
T
2026-07-20 16:42:33 +08:00

67 lines
1.8 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "SCUMFlagsSnapshot",
"type": "object",
"additionalProperties": false,
"required": ["observedAt", "flags"],
"properties": {
"observedAt": {
"type": "string",
"maxLength": 64,
"format": "date-time"
},
"flags": {
"type": "array",
"maxItems": 512,
"items": {
"type": "object",
"additionalProperties": false,
"required": ["flagId", "status"],
"properties": {
"flagId": {
"type": "string",
"pattern": "^[A-Za-z0-9_.:-]{1,96}$"
},
"status": {
"type": "string",
"enum": ["active", "inactive", "contested", "unknown"]
},
"ownerPlayerId": {
"type": "string",
"pattern": "^[A-Za-z0-9_.:-]{1,96}$"
},
"squadId": {
"type": "string",
"pattern": "^[A-Za-z0-9_.:-]{1,96}$"
},
"radiusMeters": {
"type": "number",
"minimum": 0,
"maximum": 5000
},
"position": {
"type": "object",
"additionalProperties": false,
"required": ["x", "y", "z"],
"properties": {
"x": { "type": "number", "minimum": -100000, "maximum": 100000 },
"y": { "type": "number", "minimum": -100000, "maximum": 100000 },
"z": { "type": "number", "minimum": -100000, "maximum": 100000 }
}
},
"capturedAt": {
"type": "string",
"maxLength": 64,
"format": "date-time"
},
"lastUpdatedAt": {
"type": "string",
"maxLength": 64,
"format": "date-time"
}
}
}
}
}
}