{
"$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"
}
}
}
}
}