Adds schema for encounters json.

This commit is contained in:
Deukhoofd 2021-01-16 14:14:00 +01:00
parent 5e09c719d2
commit 1216a9a272
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 50 additions and 0 deletions

50
encounters.schema.json Normal file
View File

@ -0,0 +1,50 @@
{
"$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"
}
}
}
}
}
}