{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://json.schemastore.org/drupal-layouts.json",
  "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
  },
  "title": "JSON schema for Drupal layouts file",
  "type": "object"
}
