{
  "$schema": "http://json-schema.org/draft-06/schema#",
  "$id": "http://chameleon-notation/widget-form.json#",
  "title": "Form widget",
  "description": "Schema defines form widget",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": ["form"]
    },
    "elements": {
      "type": "array",
      "items": {
        "oneOf": [
          { "$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#" }
        ]
      }
    }
  },
  "required": ["type"]
}
