{
  "$schema": "http://json-schema.org/draft-06/schema#",
  "$id": "http://chameleon-notation/field-richText.json#",
  "title": "Rich text field",
  "description": "Schema defines rich text field",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": ["rich-text"]
    },
    "label": {
      "$ref": "field-base.json#/definitions/label"
    },
    "name": {
      "$ref": "field-base.json#/definitions/name"
    },
    "toolbar": {
      "type": ["array", "string", "object"],
      "uniqueItems": true,
      "items": {
        "type": "string"
      }
    },
    "value": {
      "$ref": "field-base.json#/definitions/value"
    }
  },
  "required": ["type"]
}
