{
  "$id": "https://json.schemastore.org/foundryvtt-template.json",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false,
  "definitions": {
    "entity": {
      "type": "object",
      "properties": {
        "types": {
          "type": "array",
          "description": "Array of strings defining the entity subtypes defined by the schema.",
          "items": {
            "type": "string"
          }
        },
        "templates": {
          "type": "object",
          "description": "Template schemas that can be reused by entity subtypes.",
          "additionalProperties": {
            "type": "object",
            "description": "Definition of a template schema.",
            "additionalProperties": {
              "description": "Custom property defined for this schema."
            }
          }
        }
      },
      "additionalProperties": {
        "type": "object",
        "description": "Definition of an entity subtype.",
        "properties": {
          "templates": {
            "type": "array",
            "description": "Array of strings specifying which template schemas to apply to this type.",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": {
          "description": "Custom property defined for this schema."
        }
      }
    }
  },
  "properties": {
    "Actor": {
      "$ref": "#/definitions/entity",
      "description": "The top level data schema for Actor types."
    },
    "Item": {
      "$ref": "#/definitions/entity",
      "description": "The top level data schema for Item types."
    }
  },
  "title": "JSON schema for Foundry VTT template.json files.",
  "type": "object"
}