{
  "$schema": "http://json-schema.org/draft-06/schema#",
  "$id": "http://chameleon-notation/container-accordion-item.json#",
  "title": "Accordion item container",
  "description": "Schema defines accordion item container",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": ["accordion-item"]
    },
    "elements": {
      "type": "array",
      "anyOf": [
        {
          "items": {
            "oneOf": [
              { "$ref": "containers.json#" },
              { "$ref": "widgets.json#" },
              { "$ref": "field-text.json#" },
              { "$ref": "field-calculation.json#" },
              { "$ref": "field-number.json#" },
              { "$ref": "field-money.json#" },
              { "$ref": "field-richText.json#" },
              { "$ref": "field-date.json#" },
              { "$ref": "field-dateRange.json#" },
              { "$ref": "field-tags.json#" },
              { "$ref": "field-check.json#" },
              { "$ref": "field-checkList.json#" },
              { "$ref": "field-radioList.json#" },
              { "$ref": "field-select.json#" },
              { "$ref": "field-selectList.json#" },
              { "$ref": "field-slider.json#" },
              { "$ref": "field-switch.json#" },
              { "$ref": "field-rating.json#" },
              {
                "properties": {
                  "type": {
                    "enum": ["luckysix"]
                  }
                }
              }
            ]
          }
        },
        {
          "maxItems": 0
        }
      ]

    }
  },
  "required": ["type"]
}
