52 lines
1.5 KiB
JSON
52 lines
1.5 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://schemas.maximumdirect.net/rpg/party/v0.2.0/schema.json",
|
|
"title": "MAXIMUMDIRECT RPG Party v1",
|
|
"type": "object",
|
|
"required": ["schema_version", "characters"],
|
|
"properties": {
|
|
"schema_version": {"const": "maximumdirect.rpg.party.v1"},
|
|
"characters": {
|
|
"type": "object",
|
|
"propertyNames": {"minLength": 1},
|
|
"additionalProperties": {"$ref": "#/$defs/rosterEntry"}
|
|
}
|
|
},
|
|
"$defs": {
|
|
"text": {"type": "string", "minLength": 1},
|
|
"rosterEntry": {
|
|
"type": "object",
|
|
"required": ["character"],
|
|
"properties": {
|
|
"player": {
|
|
"type": "object",
|
|
"required": ["name"],
|
|
"properties": {"name": {"$ref": "#/$defs/text"}}
|
|
},
|
|
"character": {
|
|
"type": "object",
|
|
"required": ["name"],
|
|
"properties": {
|
|
"name": {"$ref": "#/$defs/text"},
|
|
"aliases": {
|
|
"type": ["array", "null"],
|
|
"items": {"$ref": "#/$defs/text"}
|
|
},
|
|
"classes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"required": ["name"],
|
|
"properties": {
|
|
"name": {"$ref": "#/$defs/text"},
|
|
"level": {"type": "integer", "minimum": 1, "maximum": 9223372036854775807}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|