hyperborea-character-sheet/schemas-json/character.json

96 lines
2.1 KiB
JSON
Raw Normal View History

2022-04-26 18:37:16 +00:00
{
"$defs" : {
2022-04-26 21:43:26 +00:00
"health" : {
"properties" : {
"current" : {
"type" : "number"
},
"log" : {
"description" : "history of health rolls",
"items" : {
"type" : "number"
},
"maxItems" : {
"$data" : "/level"
},
"minItems" : {
"$data" : "/level"
},
"type" : "array"
},
"max" : {
2022-04-26 22:55:59 +00:00
"sumOf" : {
"list" : {
"$data" : "1/log"
}
},
2022-04-26 21:43:26 +00:00
"type" : "number"
}
},
"required" : [
"max"
],
"type" : "object"
},
2022-04-26 18:37:16 +00:00
"statistic" : {
"maximum" : 20,
"minimum" : 1,
"type" : "number"
}
},
"$id" : "https://hyperboria.babyl.ca/character.json",
"additionalProperties" : false,
"properties" : {
2022-04-26 20:24:37 +00:00
"class" : {
"$ref" : "/classes.json"
},
2022-04-26 21:43:26 +00:00
"health" : {
"$ref" : "#/$defs/health"
},
"level" : {
"minimum" : 1,
"type" : "number"
},
2022-04-26 18:37:16 +00:00
"name" : {
"type" : "string"
},
"player" : {
"type" : "string"
},
"statistics" : {
"allRequired" : true,
"properties" : {
"charisma" : {
"$ref" : "#/$defs/statistic"
},
"constitution" : {
"$ref" : "#/$defs/statistic"
},
"dexterity" : {
"$ref" : "#/$defs/statistic"
},
"intelligence" : {
"$ref" : "#/$defs/statistic"
},
"strength" : {
"$ref" : "#/$defs/statistic"
},
"wisdom" : {
"$ref" : "#/$defs/statistic"
}
},
"type" : "object"
}
},
"required" : [
"name",
"player",
2022-04-26 20:24:37 +00:00
"statistics",
2022-04-26 21:43:26 +00:00
"class",
"level",
"health"
2022-04-26 18:37:16 +00:00
],
"title" : "Hyperboria character sheet",
"type" : "object"
}