Adds validation for evolutions

This commit is contained in:
Deukhoofd 2021-06-26 16:17:46 +02:00
parent ea3e869d3e
commit 5ec731fd5f
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 75 additions and 5 deletions

View File

@ -256,17 +256,87 @@
"type": "array",
"items": {
"type": "object",
"required": ["species", "method", "data"],
"properties": {
"species": {
"type": "string"
},
"method": {
"type": "string"
},
"data": {
"type": "string"
"type": "string",
"enum": [
"level",
"item",
"itemmale",
"itemfemale",
"holditem",
"dayholditem",
"nightholditem",
"hasmove",
"happiness",
"happinessday",
"happinessnight",
"levelfemale",
"levelmale",
"trade",
"tradespecies",
"tradeitem",
"location",
"custom"
]
}
}
},
"anyOf": [
{
"properties": {
"method": {
"enum": [
"level",
"levelfemale",
"levelmale",
"happiness",
"happinessday",
"happinessnight"
]
},
"data": {
"type": "integer"
}
}
},
{
"properties": {
"method": {
"enum": [
"item",
"itemmale",
"itemfemale",
"holditem",
"dayholditem",
"nightholditem",
"hasmove",
"trade",
"tradespecies",
"tradeitem",
"location"
]
},
"data": {
"type": "string"
}
}
},
{
"properties": {
"method": { "enum": ["custom"] },
"data": {
"type": "array",
"items": [
{"type": "string", "description": "Method identifier"}
]
}
}
}
]
}
}
}