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

174 lines
3.9 KiB
JSON
Raw Permalink Normal View History

2022-04-26 18:37:16 +00:00
{
"$defs" : {
2022-04-27 00:15:42 +00:00
"experience" : {
"properties" : {
"items" : {
"properties" : {
"amount" : {
"type" : "number"
},
"date" : {
"type" : "string"
},
"notes" : {
"type" : "string"
}
},
"type" : "object"
},
"log" : {
"type" : "array"
},
"total" : {
"sumOf" : {
"list" : {
"$data" : "1/log"
},
"map" : "amount"
},
"type" : "number"
}
},
"type" : "object"
},
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-27 00:15:42 +00:00
"age" : {
"type" : "number"
},
"alignment" : {
"type" : "string"
},
"appearance" : {
"type" : "string"
},
2022-04-26 20:24:37 +00:00
"class" : {
"$ref" : "/classes.json"
},
2022-04-27 00:15:42 +00:00
"experience" : {
"$ref" : "#/$defs/experience"
},
"gender" : {
"type" : "string"
},
2022-04-26 21:43:26 +00:00
"health" : {
"$ref" : "#/$defs/health"
},
2022-04-27 00:15:42 +00:00
"height" : {
"type" : "string"
},
"languages" : {
"items" : {
"$ref" : "/languages.json"
},
"minItems" : 1,
"type" : "array"
},
2022-04-26 21:43:26 +00:00
"level" : {
"minimum" : 1,
"type" : "number"
},
2022-04-26 18:37:16 +00:00
"name" : {
"type" : "string"
},
"player" : {
"type" : "string"
},
2022-04-27 00:15:42 +00:00
"race" : {
"$ref" : "/races.json"
},
"spells" : {
"items" : {
"$ref" : "/spells.json"
},
"maxSpells" : {
"class" : {
"$data" : "/class"
},
"level" : {
"$data" : "/level"
}
},
"type" : "array"
},
2022-04-26 18:37:16 +00:00
"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",
2022-04-27 00:15:42 +00:00
"health",
"experience",
"age",
"height",
"appearance",
"alignment"
2022-04-26 18:37:16 +00:00
],
"title" : "Hyperboria character sheet",
"type" : "object"
}