hyperborea-character-sheet/schemas-yaml/character.yml

30 lines
578 B
YAML
Raw Normal View History

2022-04-26 16:44:25 +00:00
$id: https://hyperboria.babyl.ca/character.json
title: Hyperboria character sheet
type: object
2022-04-26 16:57:57 +00:00
additionalProperties: false
required:
- name
- player
2022-04-26 17:50:56 +00:00
- statistics
2022-04-26 16:57:57 +00:00
properties:
name: &string
type: string
player: *string
2022-04-26 17:50:56 +00:00
statistics:
type: object
allRequired: true
properties:
strength: &stat
$ref: '#/$defs/statistic'
dexterity: *stat
constitution: *stat
intelligence: *stat
wisdom: *stat
charisma: *stat
$defs:
statistic:
type: number
minimum: 1
maximum: 20