adding the stats

This commit is contained in:
Yanick Champoux 2022-04-26 13:50:56 -04:00
parent dc03492d53
commit e85f9795ed
2 changed files with 25 additions and 0 deletions

View File

@ -1,2 +1,9 @@
name: Verg-La name: Verg-La
player: Yanick player: Yanick
statistics:
strength: 11
dexterity: 13
constitution: 10
intelligence: 18
wisdom: 15
charisma: 11

View File

@ -5,7 +5,25 @@ additionalProperties: false
required: required:
- name - name
- player - player
- statistics
properties: properties:
name: &string name: &string
type: string type: string
player: *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