JSON Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Magic Item",
"type": "object",
"properties": {
"slug": {
"type": "string"
},
"name": {
"type": "string"
},
"name_en": {
"type": [
"string",
"null"
]
},
"type": {
"type": "string"
},
"subtype": {
"type": [
"string",
"null"
]
},
"rarity": {
"anyOf": [
{
"type": "string",
"enum": [
"common",
"uncommon",
"rare",
"very rare",
"legendary",
"artifact"
]
},
{
"type": "null"
}
]
},
"attunement": {
"type": "object",
"properties": {
"required": {
"type": "boolean"
},
"condition": {
"type": [
"string",
"null"
]
}
},
"required": [
"required",
"condition"
],
"additionalProperties": false
},
"description_md": {
"type": "string"
},
"spells": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"slug",
"name",
"name_en",
"type",
"subtype",
"rarity",
"attunement",
"description_md",
"spells"
],
"additionalProperties": false
}