{
  "$schema": "http://json-schema.org/draft-06/schema#",
  "$id": "http://chameleon-notation/container-panel.json#",
  "title": "Panel container",
  "description": "Schema defines panel container",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": ["panel"]
    },
    "color": {
      "type": "string"
    },
    "elements": {
      "type": "array",
      "anyOf": [
        {
          "items": {
            "oneOf": [
              { "$ref": "containers.json#" },
              { "$ref": "widgets.json#" },
              {
                "properties": {
                  "type": {
                    "enum": ["luckysix"]
                  }
                }
              }
            ]
          }
        },
        {
          "maxItems": 0
        }
      ]
    },
    "flat": {
      "type": "boolean"
    },
    "name": {
      "$ref": "field-base.json#/definitions/name"
    }
  },
  "required": ["type"]
}
