{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/placid/json-schema/placid-list-of-templates-schema-schema.json",
  "title": "ListOfTemplatesSchema",
  "description": "This is a Template. A template has layers that can be filled via text and/or image urls. So you can f.ex. exchange images inside of it or switch out texts",
  "x-generated": "2026-10-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/placid-openapi.json#/components/schemas/ListOfTemplatesSchema",
  "properties": {
    "data": {
      "title": "Templates",
      "type": "array",
      "items": {
        "$ref": "#/$defs/TemplateSchema"
      }
    }
  },
  "$defs": {
    "TemplateLayerSchema": {
      "title": "TemplateLayerSchema",
      "description": "This is a TemplateLayer",
      "type": "object",
      "properties": {
        "name": {
          "title": "Name",
          "type": "string"
        },
        "type": {
          "title": "Type",
          "type": "string",
          "enum": [
            "picture",
            "text"
          ]
        }
      },
      "required": [
        "name",
        "type"
      ]
    },
    "TemplateSchema": {
      "title": "TemplateSchema",
      "description": "This is a Template. A template has layers that can be filled via text and/or image urls. So you can f.ex. exchange images inside of it or switch out texts",
      "type": "object",
      "properties": {
        "uuid": {
          "title": "UUID",
          "description": "The Template UUID is being used to identify it and its unique across all templates",
          "type": "string"
        },
        "title": {
          "title": "Title",
          "description": "The title is a user entered title.",
          "type": "string"
        },
        "layers": {
          "title": "Layers",
          "description": "These are the dynamic layers that can be changed.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/TemplateLayerSchema"
          }
        }
      },
      "required": [
        "uuid",
        "title",
        "layers"
      ]
    }
  }
}