module.exports = {
  "metadata": { "section": "Caption" },
  "definitions": {
    "CaptionNode": {
      "metadata": {
        "tsRicosNode": true,
        "examples": [],
        "description": "Caption container to be attached to media elements, such as images. Captions support formatted text content and can be styled independently from their parent nodes."
      },
      "properties": {
        "type": {
          "enum": ["CAPTION"],
          "metadata": {
            "description": "Node type. \n Must be `CAPTION`."
          }
        },
        "nodes": {
          "elements": {
            "ref": "TextNode"
          },
          "metadata": {
            "tsRicosNodesChildren": true
          }
        }
      },
      "optionalProperties": {
        "id": {
          "type": "string",
          "metadata": {
            "description": "Caption [node ID](#node-ids)."
          }
        },
        "style": {
          "ref": "NodeStyle",
          "metadata": {
            "description": "Defines the caption styling, such as padding and background color. \n **Note:** This node requires the [`lineSpacing`](https://dev.wix.com/docs/ricos/getting-started/introduction#plugins) plugin to be enabled."
          }
        },
        "captionData": {
          "ref": "CaptionData",
          "metadata": {
            "description": "Caption options."
          }
        }
      }
    },
    "CaptionData": {
      "optionalProperties": {
        "textStyle": {
          "ref": "TextStyle",
          "metadata": {
            "description": "Caption text styling."
          }
        }
      }
    }
  }
}