Adds move json schema

This commit is contained in:
Deukhoofd 2021-03-21 13:09:57 +01:00
parent f2365c92e0
commit ea3e869d3e
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 123 additions and 0 deletions

123
moves.schema.json Normal file
View File

@ -0,0 +1,123 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Pokemon",
"description": "A schema for pokemon species data.",
"type": "object",
"properties": {
"$schema": {
"type": "string"
},
"data": {
"type": "array",
"items": {
"required": [
"name",
"type",
"power",
"pp",
"accuracy",
"priority",
"target",
"category",
"flags"
],
"properties": {
"name": {
"type": "string",
"description": "The internal name of the move."
},
"type": {
"type": "string",
"enum": [
"normal",
"fighting",
"flying",
"poison",
"ground",
"rock",
"bug",
"ghost",
"steel",
"fire",
"water",
"grass",
"electric",
"psychic",
"ice",
"dragon",
"dark",
"fairy",
"divine"
]
},
"power": {
"type": "integer",
"minimum": 0,
"maximum": 255
},
"pp": {
"type": "integer",
"minimum": 0,
"maximum": 255
},
"accuracy": {
"type": "integer",
"minimum": 0,
"maximum": 255
},
"priority": {
"type": "integer",
"minimum": -127,
"maximum": 128
},
"target": {
"type": "string",
"enum": [
"Adjacent",
"AdjacentAlly",
"AdjacentAllySelf",
"AdjacentOpponent",
"All",
"AllAdjacent",
"AllAdjacentOpponent",
"AllAlly",
"AllOpponent",
"Any",
"RandomOpponent",
"Self"
]
},
"category": {
"type": "string",
"enum": [
"physical",
"special",
"status"
]
},
"flags": {
"type": "array",
"items": {
"type": "string"
}
},
"effect": {
"type": "object",
"required": ["name"],
"properties": {
"name": {
"type": "string"
},
"chance": {
"type": "number"
},
"parameters": {
"type": "array"
}
}
}
}
}
}
}
}