hyperborea-character-sheet/schemas-yaml/character.yml
2022-04-26 20:20:05 -04:00

30 lines
578 B
YAML

$id: https://hyperboria.babyl.ca/character.json
title: Hyperboria character sheet
type: object
additionalProperties: false
required:
- name
- player
- statistics
properties:
name: &string
type: string
player: *string
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