PokemonJsonSchemas/encounters.schema.json

65 lines
1.4 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Encounters",
"description": "A schema for route encounters.",
"type": "object",
"properties": {
"$schema": {
"type": "string"
}
},
"patternProperties": {
"^.*$": {
"type": "array",
"items": {
"type": "object",
"required": [
"species",
"time",
"type",
"chance",
"minimumlvl",
"maximumlvl"
],
"properties": {
"species": {
"type": "string"
},
"time": {
"type": "array",
"items": {
"enum": ["morning", "day", "evening", "night"]
}
},
"type": {
"enum": ["grass", "oldrod", "goodrod", "superrod", "surf"]
},
"chance": {
"type": "integer"
},
"minimumLevel": {
"type": "integer"
},
"maximumlvl": {
"type": "integer"
},
"formes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"forme": {
"type": "string"
},
"chance": {
"type": "integer"
}
}
}
}
}
}
}
}
}