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

32 lines
627 B
YAML

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