Skip to main content
Validate social sharing component schema

Properties

  • headerText (string) - maxLength: 50
  • facebook (boolean)
  • whatsApp (boolean)
  • instagram (boolean)
  • twitter (boolean)
  • email (boolean)
  • tracking (array) - Extend event tracking core and add additional property. see: https://json-schema.org/understanding-json-schema/structuring.html#id5
  • formatting (object)
    • textStyle (object - style component reference)
    • cardStyle (object - style component reference)

Used in Categories

This component is used in the following categories:

Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Social Sharing component",
  "description": "Validate social sharing component schema",
  "type": "object",
  "required": [],
  "additionalProperties": false,
  "properties": {
    "headerText": {
      "type": "string",
      "maxLength": 50
    },
    "facebook": {
      "type": "boolean"
    },
    "whatsApp": {
      "type": "boolean"
    },
    "instagram": {
      "type": "boolean"
    },
    "twitter": {
      "type": "boolean"
    },
    "email": {
      "type": "boolean"
    },
    "tracking": {
      "type": "array",
      "description": "Extend event tracking core and add additional property. see: https://json-schema.org/understanding-json-schema/structuring.html#id5",
      "additionalItems": false,
      "items": {
        "allOf": [
          {
            "$ref": "event_tracking.json"
          },
          {
            "properties": {
              "name": {
                "type": "string",
                "enum": [
                  "facebook",
                  "whatsApp",
                  "twitter",
                  "email",
                  "instagram"
                ]
              }
            },
            "required": [
              "name"
            ]
          }
        ]
      }
    },
    "formatting": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "textStyle": {
          "$ref": "style/text.json"
        },
        "cardStyle": {
          "$ref": "style/card.json"
        }
      }
    }
  }
}