Summary

Description
Type, including normally hidden “behind the scenes” types like ??? and Shadow.
Data path
resources/data/type.csv
Schema
https://poketools.gamestuff.info/data/schema/type.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

damage_class

Damage Class identifier for versions where damage class comes from the type. Types introduced after the switch will have this blank. 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)

hidden

Is this type normally shown? If this is set the type will generally be excluded from displayed type lists unless it is specifically involved in the matchup.

type
boolean
values
  • 0
  • 1
default
0
required

JSON Schema

View raw

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://poketools.gamestuff.info/data/schema/type.json",
  "title": "Type",
  "description": "Type, including normally hidden \"behind the scenes\" types like ??? and Shadow.",
  "type": "object",
  "properties": {
    "identifier": {
      "$ref": "types/identifier.json"
    },
    "name": {
      "$ref": "types/name.json"
    },
    "damage_class": {
      "title": "Damage Class identifier",
      "description": "For versions where damage class comes from the type.  Types introduced after the switch will have this blank.",
      "oneOf": [
        {
          "allOf": [
            {
              "$ref": "types/identifier.json"
            },
            {
              "type": "string",
              "$filters": "damageClassIdentifier"
            }
          ]
        },
        {
          "title": "Blank",
          "type": "string",
          "minLength": 0,
          "maxLength": 0
        }
      ]
    },
    "hidden": {
      "title": "Is hidden",
      "description": "Is this type normally shown?  If this is set the type will generally be excluded from displayed type lists unless it is specifically involved in the matchup.",
      "type": "integer",
      "enum": [
        0,
        1
      ],
      "default": 0
    }
  },
  "additionalProperties": false,
  "required": [
    "identifier",
    "name",
    "hidden"
  ]
}