Source code
Revision control
Copy as Markdown
Other Tools
{
"title": "MenuMessage",
"description": "A template for messages that appear within our menus.",
"allOf": [
{
}
],
"type": "object",
"properties": {
"content": {
"type": "object",
"properties": {
"messageType": {
"type": "string",
"description": "The subtype of the message.",
"enum": ["fxa_cta"]
},
"primaryText": {
"description": "The primary text for the message, which offers the value proposition to the user."
},
"secondaryText": {
"description": "The second text for the message, which offers more detail on the value proposition to the user."
},
"closeAction": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Action dispatched by the button."
},
"data": {
"type": "object"
}
},
"required": ["type"],
"additionalProperties": true,
"description": "The action to take upon clicking the close button."
},
"primaryAction": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Action dispatched by the button."
},
"data": {
"type": "object"
}
},
"required": ["type"],
"additionalProperties": true,
"description": "The action to take upon clicking the primary action button."
},
"primaryActionText": {
"description": "The label for the primary action."
},
"imageURL": {
"type": "string",
"description": "URL for image to use with the content."
},
"imageVerticalOffset": {
"type": "number",
"description": "The margin-block-start value to apply to the image in pixels."
}
}
},
"template": {
"type": "string",
"const": "menu_message"
},
"testingTriggerContext": {
"type": "string",
"enum": ["app_menu", "pxi_menu"]
}
},
"additionalProperties": true
}