Summary

Description
Every generation with timekeeping has different time-of-day boundaries.
Data path
resources/data/time_of_day.csv
Schema
https://poketools.gamestuff.info/data/schema/time_of_day.json

Fields

generation

Generation ID. The unique id for this entity. Only entities that have no clear name should use this numeric form.

type

integer

minimum

1

required

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

starts

Start time (24-hour format, UTC, inclusive), e.g. 04:00:00

type
string
required

ends

End time (24-hour format, UTC, inclusive), e.g. 09:59:59

type
string
required

JSON Schema

View raw

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://poketools.gamestuff.info/data/schema/time_of_day.json",
  "title": "Time of Day",
  "description": "Every generation with timekeeping has different time-of-day boundaries.",
  "type": "object",
  "properties": {
    "generation": {
      "title": "Generation ID",
      "$ref": "types/id.json"
    },
    "identifier": {
      "$ref": "types/identifier.json"
    },
    "name": {
      "$ref": "types/name.json"
    },
    "starts": {
      "title": "Start time",
      "description": "Start time (24-hour format, UTC, inclusive)",
      "type": "string",
      "minLength": 1,
      "format": "time"
    },
    "ends": {
      "title": "End time",
      "description": "End time (24-hour format, UTC, inclusive)",
      "type": "string",
      "minLength": 1,
      "format": "time"
    }
  },
  "additionalProperties": false,
  "required": [
    "generation",
    "identifier",
    "name",
    "starts",
    "ends"
  ]
}