{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://castdeck.studio/developers/schemas/template-manifest.schema.json",
  "title": "castdeck-template.json",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 200
    },
    "author": {
      "type": "string",
      "maxLength": 200
    },
    "version": {
      "type": "string",
      "pattern": "^\\d+\\.\\d+\\.\\d+$"
    },
    "kind": {
      "type": "string",
      "enum": [
        "display",
        "function"
      ],
      "default": "display",
      "description": "'display' renders visuals (default). 'function' templates cannot be sold on the Castdeck store."
    },
    "thumbnail": {
      "type": "string",
      "description": "Relative path to a preview image inside the template."
    }
  },
  "additionalProperties": true
}
