{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://json.schemastore.org/foundryvtt-system-manifest.json",
  "allOf": [
    {
      "$ref": "https://json.schemastore.org/foundryvtt-base-package-manifest.json#"
    }
  ],
  "properties": {
    "manifest": {
      "$ref": "https://json.schemastore.org/foundryvtt-base-package-manifest.json#/definitions/URL",
      "description": "A stable URL that describes the latest release version of your manifest file. This URL is used for automatic system installation in the Foundry VTT setup screen. This manifest URL is consulted during the system 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": ".*system\\.json",
      "examples": [
        "https://raw.githubusercontent.com/foundryvtt/worldbuilding/master/system.json"
      ]
    },
    "initiative": {
      "description": "Specifies the default initiative formula if applicable to the system.",
      "type": "string",
      "examples": ["1d20 + @dex"]
    },
    "gridDistance": {
      "description": "Integer specifying the default size of a grid space.",
      "type": "number",
      "examples": [5, 1.5]
    },
    "gridUnits": {
      "description": "A label that specifies the default unit of measure used by the system.",
      "type": "string",
      "examples": ["ft", "m"]
    },
    "primaryTokenAttribute": {
      "description": "An attribute path within the system data model that points to an object that contains both a `value` and a `max` key. The prototype Token will automatically set its primary attribute to this value.",
      "type": ["null", "string"],
      "examples": ["health", "attributes.hp"]
    },
    "secondaryTokenAttribute": {
      "description": "An attribute path within the system data model that points to an object that contains both a `value` and a `max` key. The prototype Token will automatically set its secondary attribute to this value.",
      "type": ["null", "string"],
      "examples": ["health", "attributes.hp"]
    }
  },
  "title": "JSON schema for Foundry VTT system files - system.json.",
  "type": "object"
}
