|
|
@@ -31,6 +31,18 @@
|
|
|
"experience": {"type": "integer"},
|
|
|
"health": {"$ref": "#/definitions/hitpoints"},
|
|
|
"abilities": {
|
|
|
+ "propertyNames": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["str", "dex", "con", "int", "wis", "cha"]
|
|
|
+ },
|
|
|
+ "additionalProperties": {
|
|
|
+ "properties": {
|
|
|
+ "base": {"$ref": "#/definitions/abilityScore"},
|
|
|
+ "temp": {"$ref": "#/definitions/abilityScore"}
|
|
|
+ },
|
|
|
+ "additionalProperties": false,
|
|
|
+ "type": "object"
|
|
|
+ }
|
|
|
},
|
|
|
"skills": {
|
|
|
"items": {"$ref": "#/definitions/skill"},
|
|
|
@@ -40,6 +52,13 @@
|
|
|
},
|
|
|
"type": "object",
|
|
|
"definitions": {
|
|
|
+ "abilityScore": {
|
|
|
+ "type": "integer",
|
|
|
+ "oneOf": [
|
|
|
+ {"const": -1},
|
|
|
+ {"exclusiveMinimum": 0}
|
|
|
+ ]
|
|
|
+ },
|
|
|
"classDetail": {
|
|
|
"properties": {
|
|
|
"level": {"type": "integer", "minimum": 1},
|