Summary
- Description
- Mainline generations
- Data path
- resources/data/generation.csv
- Schema
- https://poketools.gamestuff.info/data/schema/generation.json
Fields
id
Generation number
- type
- integer
- minimum
- 1
- required
name
The entity’s user-facing name. All of UTF-8 is valid here, so use “é” where appropriate.
- type
-
string
- required
main_region
Identifier for the primary region in the generation; i.e. Generation II would be Johto, even through Kanto is playable.
A machine-usable name for the entity. This is usually a munged version of the entity name. An identifier must consist only of lowercase ASCII characters, 0-9, and/or a hyphen.
i.e. anything unique to the entity matching the regular expression
^[a-z0-9\-]+$ (Test it here)
- type
-
string
- pattern
-
^[a-z0-9\-]+$(Test) - required
JSON Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://poketools.gamestuff.info/data/schema/generation.json",
"title": "Generation",
"description": "Mainline generations",
"type": "object",
"properties": {
"id": {
"title": "Generation number",
"examples": [
"3"
],
"$ref": "types/id.json"
},
"name": {
"examples": [
"Generation III"
],
"$ref": "types/name.json"
},
"main_region": {
"title": "Main Region identifier",
"description": "The primary region in the generation; i.e. Generation II would be Johto, even through Kanto is playable.",
"allOf": [
{
"$ref": "types/identifier.json"
},
{
"type": "string",
"$filters": "regionIdentifier"
}
]
}
},
"additionalProperties": false,
"required": [
"id",
"name",
"main_region"
]
}