{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/drupal-layouts/latest.json",
  "title": "JSON schema for Drupal layouts file",
  "x-lintel": {
    "source": "https://www.schemastore.org/drupal-layouts.json",
    "sourceSha256": "24393a80d3c3a54d8c8b113c653f302e0910a0edaf5a4b38442bea325e35f40e",
    "fileMatch": [
      "*.layouts.yml"
    ],
    "parsers": [
      "yaml"
    ]
  },
  "type": "object",
  "additionalProperties": {
    "type": "object",
    "properties": {
      "label": {
        "title": "The human-readable name",
        "type": "string"
      },
      "description": {
        "title": "A description for advanced layouts",
        "type": "string"
      },
      "category": {
        "title": "The human-readable category name",
        "type": "string"
      },
      "template": {
        "title": "The template file to render this layout",
        "type": "string"
      },
      "theme_hook": {
        "title": "The theme hook used to render this layout",
        "default": "layout",
        "type": "string"
      },
      "path": {
        "title": "Path to resources like icon or template",
        "type": "string"
      },
      "library": {
        "title": "The asset library",
        "type": "string"
      },
      "icon": {
        "title": "The path to the preview image",
        "type": "string"
      },
      "icon_map": {
        "title": "The icon map",
        "type": "array",
        "items": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "regions": {
        "title": "List of regions in this layout",
        "type": "object",
        "additionalProperties": {
          "type": "object",
          "properties": {
            "label": {
              "title": "The human-readable name",
              "type": "string"
            }
          },
          "additionalProperties": true
        }
      },
      "default_region": {
        "title": "The default region",
        "type": "string"
      },
      "class": {
        "title": "Plugin class",
        "type": "string"
      }
    },
    "additionalProperties": false
  }
}
