{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://mysteryforge.vivalainsurreccion.com/games/schema.json",
  "title": "A game made with MysteryForge (a listing on mysteryforge.vivalainsurreccion.com/games/)",
  "type": "object",
  "required": [
    "id",
    "title",
    "studio",
    "status",
    "tagline",
    "summary",
    "platforms",
    "links",
    "cover",
    "added"
  ],
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
      "description": "Short lowercase id for the game's page address, e.g. the-lantern-room"
    },
    "title": {
      "type": "string",
      "description": "The game's title"
    },
    "series": {
      "type": "string",
      "description": "Series or episode line shown above the title"
    },
    "studio": {
      "type": "string",
      "description": "Who made it: a studio or a person"
    },
    "studio_url": {
      "type": "string",
      "format": "uri",
      "pattern": "^https://",
      "description": "The maker's website"
    },
    "featured": {
      "type": "boolean",
      "description": "In the Showcase (chosen by Insurrection Studios)"
    },
    "status": {
      "enum": [
        "released",
        "beta",
        "in-development"
      ],
      "description": "released, beta or in-development"
    },
    "status_note": {
      "type": "string",
      "description": "A word more about the status, e.g. Closed beta"
    },
    "year": {
      "type": "integer",
      "description": "Year of release (or of the current build)"
    },
    "tagline": {
      "type": "string",
      "description": "One line, under 90 characters"
    },
    "summary": {
      "type": "string",
      "description": "Two or three sentences for cards and search"
    },
    "description": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "string"
      },
      "description": "The full description, as paragraphs"
    },
    "features": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "string"
      },
      "description": "Bullet points"
    },
    "genres": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "string"
      },
      "description": "e.g. mystery, point-and-click"
    },
    "tags": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "string"
      },
      "description": "Searchable keywords"
    },
    "platforms": {
      "type": "array",
      "minItems": 1,
      "items": {
        "enum": [
          "windows",
          "macos",
          "linux",
          "web",
          "android",
          "ios"
        ]
      },
      "description": "windows, macos, linux, web, android, ios"
    },
    "languages": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "string"
      },
      "description": "Languages of the text or voice"
    },
    "playtime": {
      "type": "string",
      "description": "e.g. About 90 minutes"
    },
    "engine_version": {
      "type": "string",
      "description": "The MysteryForge engine version the game ships with"
    },
    "made_with": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "string"
      },
      "description": "Other tools used: Blender, QxSprite…"
    },
    "links": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": [
          "label",
          "url",
          "kind"
        ],
        "properties": {
          "label": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "kind": {
            "enum": [
              "itch",
              "steam",
              "web",
              "site",
              "gog",
              "other"
            ]
          }
        }
      },
      "description": "Where to get or play it: [{label, url, kind}] — kind is itch, steam, web, site, gog or other"
    },
    "cover": {
      "type": "string",
      "description": "Cover picture, 630×500 (or 1260×1000)"
    },
    "banner": {
      "type": "string",
      "description": "Wide banner, 1920×540"
    },
    "screenshots": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "src",
          "alt"
        ],
        "properties": {
          "src": {
            "type": "string"
          },
          "alt": {
            "type": "string"
          }
        }
      },
      "description": "[{src, alt}] — 1920×1080 screenshots, each with a description for screen readers"
    },
    "added": {
      "type": "string",
      "format": "date",
      "description": "Date listed, YYYY-MM-DD"
    }
  }
}
