JSON Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Weapon",
"type": "object",
"properties": {
"slug": {
"type": "string"
},
"name": {
"type": "string"
},
"name_en": {
"type": [
"string",
"null"
]
},
"category": {
"type": "string",
"enum": [
"simple",
"martial"
]
},
"type": {
"type": "string",
"enum": [
"melee",
"ranged"
]
},
"damage_dice": {
"type": "string"
},
"damage_type": {
"type": [
"string",
"null"
]
},
"properties": {
"type": "array",
"items": {
"type": "string"
}
},
"mastery": {
"type": [
"string",
"null"
]
},
"range_normal": {
"type": [
"integer",
"null"
]
},
"range_long": {
"type": [
"integer",
"null"
]
},
"weight": {
"type": [
"string",
"null"
]
},
"cost": {
"type": "string"
}
},
"required": [
"slug",
"name",
"name_en",
"category",
"type",
"damage_dice",
"damage_type",
"properties",
"mastery",
"range_normal",
"range_long",
"weight",
"cost"
],
"additionalProperties": false
}