Skip to main content
Schema to validate button component

Properties

  • link (string) - minLength: 5 - maxLength: 2000 (required)
  • type (string) - enum: url, email, phone, sms, page
  • conditions (object - ref: conditional_urls)

Used in Categories

This component is used in the following categories:

Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "definitions": {},
  "title": "Button component schema",
  "description": "Schema to validate button component",
  "allOf": [
    {
      "$ref": "_base_button.json"
    },
    {
      "properties": {
        "link": {
          "type": "string",
          "minLength": 5,
          "maxLength": 2000
        },
        "type": {
          "type": "string",
          "enum": [
            "url",
            "email",
            "phone",
            "sms",
            "page"
          ]
        },
        "conditions": {
          "$ref": "conditional_urls.json"
        }
      },
      "required": [
        "link"
      ]
    }
  ]
}