1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Update json schema

This commit is contained in:
Tomasz Zieliński 2024-09-21 13:52:25 +02:00
parent 55e2a99154
commit dbee822454

View File

@ -52,7 +52,49 @@
}
},
"customObjects" : {
"type" : "object"
"type" : "object",
"properties": {
"bannedCategories": {
"type": "array",
"items": {
"type": "string",
"enum": ["all", "dwelling", "creatureBank", "randomArtifact", "bonus", "resource", "resourceGenerator", "spellScroll", "pandorasBox", "questArtifact", "seerHut"]
}
},
"bannedObjects": {
"type": "array",
"items": {
"type": "string"
}
},
"commonObjects": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"rmg": {
"type": "object",
"properties": {
"value": {
"type": "integer"
},
"rarity": {
"type": "integer"
},
"zoneLimit": {
"type": "integer"
}
},
"required": ["value", "rarity"]
}
},
"required": ["id", "rmg"]
}
}
}
}
}
},