Summary
- Description
- Pokemon color, used for flavor in some version Pokedexes
- Data path
- resources/data/pokemon_color.csv
- Schema
- https://poketools.gamestuff.info/data/schema/pokemon_color.json
Fields
identifier
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
name
The entity’s user-facing name. All of UTF-8 is valid here, so use “é” where appropriate.
- type
-
string
- required
css_color
A valid CSS Color string. See the CSS 2 Spec and the extended color name list.
- type
- string
JSON Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://poketools.gamestuff.info/data/schema/pokemon_color.json",
"title": "Pokemon color",
"description": "Pokemon color, used for flavor in some version Pokedexes",
"type": "object",
"properties": {
"identifier": {
"$ref": "types/identifier.json"
},
"name": {
"$ref": "types/name.json"
},
"css_color": {
"title": "CSS Color",
"description": "A valid CSS Color string. See the [CSS 2 Spec](https://www.w3.org/TR/CSS2/syndata.html#color-units) and the [extended color name list](https://drafts.csswg.org/css-color-3/#svg-color).",
"type": "string",
"minLength": 1,
"$filters": "cssColor"
}
},
"additionalProperties": false,
"required": [
"identifier",
"name"
]
}