{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {},
"title": "Base button schema",
"description": "This schema can be extended to add additional fields",
"type": "object",
"required": [
"label"
],
"properties": {
"label": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"color": {
"type": "object",
"required": [],
"additionalProperties": false,
"properties": {
"button": {
"type": "string"
},
"label": {
"type": "string",
"minLength": 2,
"maxLength": 10
},
"border": {
"type": "string"
},
"iconColor": {
"type": "string",
"pattern": "^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$",
"description": "Button icon color"
}
}
},
"buttonStyle": {
"$ref": "style/button.json"
},
"textStyle": {
"$ref": "style/text.json"
},
"tracking": {
"$ref": "event_tracking.json"
}
}
}