{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/foundry-vtt-world-manifest/latest.json",
  "title": "JSON schema for Foundry VTT world manifest files - world.json.",
  "x-lintel": {
    "source": "https://www.schemastore.org/foundryvtt-world-manifest.json",
    "sourceSha256": "0679f6c82fdd9596f1165a6bfc636b0817d4ee43f25f2f795514554b7ce2abd7",
    "fileMatch": [
      "**/worlds/*/world.json"
    ],
    "parsers": [
      "json"
    ]
  },
  "type": "object",
  "properties": {
    "manifest": {
      "$ref": "https://catalog.lintel.tools/schemas/schemastore/foundry-vtt-world-manifest/_shared/latest--foundryvtt-base-package-manifest.json#/$defs/URL",
      "description": "A stable URL that describes the latest release version of your manifest file. This URL is used for automatic world installation in the Foundry VTT setup screen. This manifest URL is consulted during the module update check to see whether a new version is available for download. It is important that this address remain stable, otherwise updates will not be detected.",
      "pattern": ".*world\\.json",
      "examples": [
        "https://github.com/ForgeVTT/forgevtt-demo-world/releases/latest/download/world.json"
      ]
    },
    "system": {
      "$ref": "https://catalog.lintel.tools/schemas/schemastore/foundry-vtt-world-manifest/_shared/latest--foundryvtt-base-package-manifest.json#/$defs/Identifier",
      "description": "The game system name which this world relies upon",
      "examples": [
        "dnd5e"
      ]
    },
    "background": {
      "description": "A web URL or local file path which provides a background banner image",
      "oneOf": [
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/foundry-vtt-world-manifest/_shared/latest--foundryvtt-base-package-manifest.json#/$defs/URL"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/foundry-vtt-world-manifest/_shared/latest--foundryvtt-base-package-manifest.json#/$defs/File"
        }
      ]
    },
    "coreVersion": {
      "$ref": "https://catalog.lintel.tools/schemas/schemastore/foundry-vtt-world-manifest/_shared/latest--foundryvtt-base-package-manifest.json#/$defs/Version",
      "description": "The version of the core software for which this world has been migrated"
    },
    "systemVersion": {
      "$ref": "https://catalog.lintel.tools/schemas/schemastore/foundry-vtt-world-manifest/_shared/latest--foundryvtt-base-package-manifest.json#/$defs/Version",
      "description": "The version of the game system for which this world has been migrated",
      "examples": [
        "2.0.3"
      ]
    },
    "nextSession": {
      "description": "An ISO datetime string when the next game session is scheduled to occur",
      "type": [
        "string",
        "null"
      ]
    },
    "resetKeys": {
      "description": "Should user access keys be reset as part of the next launch?",
      "type": "boolean"
    },
    "safeMode": {
      "description": "Should the world launch in safe mode?",
      "type": "boolean"
    }
  },
  "required": [
    "system",
    "coreVersion",
    "systemVersion"
  ],
  "allOf": [
    {
      "$ref": "https://catalog.lintel.tools/schemas/schemastore/foundry-vtt-world-manifest/_shared/latest--foundryvtt-base-package-manifest.json#"
    }
  ]
}
