Summary

Description
Major areas of the world: Kanto, Johto, etc.
Data path
resources/data/region/
Schema
https://poketools.gamestuff.info/data/schema/region.json

Filename

Region 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)

Top-level keys

Version group 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)

Fields

name

The entity’s user-facing name. All of UTF-8 is valid here, so use “é” where appropriate.

type

string

required

position

The sorting position for this entity.

type

integer

default

0

required

maps

A mapping with information about the map graphics for this region. Keys are used as an identifier to refer to this map graphic.

type
mapping[string: mapping]

name

The entity’s user-facing name. All of UTF-8 is valid here, so use “é” where appropriate.

type

string

required

url

The path to the asset, relative to the entity type’s asset directory.

type

string

required

JSON Schema

View raw

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://poketools.gamestuff.info/data/schema/region.json",
  "title": "Region",
  "description": "Major areas of the world: Kanto, Johto, etc.",
  "type": "object",
  "propertyNames": {
    "title": "Version Group identifier",
    "allOf": [
      {
        "$ref": "types/identifier.json"
      },
      {
        "type": "string",
        "$filters": "versionGroupIdentifier"
      }
    ]
  },
  "minProperties": 1,
  "additionalProperties": {
    "type": "object",
    "properties": {
      "name": {
        "$ref": "types/name.json"
      },
      "position": {
        "$ref": "types/position.json"
      },
      "maps": {
        "type": "object",
        "propertyNames": {
          "title": "Map identifier",
          "$ref": "types/identifier.json"
        },
        "additionalProperties": {
          "type": "object",
          "properties": {
            "name": {
              "$ref": "types/name.json"
            },
            "url": {
              "$ref": "types/asset_path.json"
            }
          },
          "additionalProperties": false,
          "required": [
            "name",
            "url"
          ]
        }
      }
    },
    "additionalProperties": false,
    "required": [
      "name",
      "position"
    ]
  }
}