module.exports = {
  "metadata": { "section": "Heading" },
  "definitions": {
    "HeadingNode": {
      "metadata": {
        "tsRicosNode": true,
        "examples": ["headings-all-sizes"],
        "description": "Indicates a heading or title of a section. There are 6 levels of headings, with `1` being the most prominent and `6` being the least."
      },
      "properties": {
        "type": {
          "enum": ["HEADING"],
          "metadata": {
            "description": "Node type. \n Must be `HEADING`."
          }
        }
      },
      "optionalProperties": {
        "nodes": {
          "elements": {
            "ref": "TextNode"
          },
          "metadata": {
            "tsRicosNodesChildren": true,
            "description": "Child nodes to define the heading text."
          }
        },
        "id": {
          "type": "string",
          "metadata": {
            "format": "NODE_ID",
            "description": "[Node ID](#node-ids)."
          }
        },
        "style": {
          "ref": "NodeStyle",
          "metadata": {
            "description": "Heading 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."
          }
        },
        "headingData": {
          "ref": "HeadingData",
          "metadata": {
            "description": "Heading options."
          }
        }
      }
    },
    "HeadingData": {
      "optionalProperties": {
        "level": {
          "type": "int32",
          "metadata": {
            "description": "Heading size. <br> Mi: `1` <br> Max: `6`",
            "validation": {
              "min": 1,
              "max": 6
            }
          }
        },
        "textStyle": {
          "ref": "TextStyle",
          "metadata": {
            "description": "Heading text styling, such as text alignment and line height."
          }
        },
        "indentation": {
          "type": "int32",
          "metadata": {
            "description": "Heading margin from the left side. \n The indentation is measured relative to the font size *em* units by a ratio of 1.5. For example, if the indentation is `2`, then the margin is equal to **3em**. Therefore the margin is 3 times the size of the font."
          }
        },
        "renderedLevel": {
          "type": "int32",
          "metadata": {
            "description": "Rendered heading level for SEO/accessibility. When set, overrides the HTML tag (h1-h6) while `level` still controls the visual style.",
            "validation": {
              "min": 1,
              "max": 6
            }
          }
        }
      }
    }
  }
}