changedInput schema / properties / content / properties / elements / items / anyOf
Previous value: -[
- {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "channels": {
- "description": "Restrict this element to these channels",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "content": {
- "description": "The text to render",
- "type": "string"
- },
- "format": {
- "const": "markdown",
- "description": "Set to \"markdown\" to render markdown",
- "type": "string"
- },
- "if": {
- "description": "Expression; the element renders only when truthy",
- "type": "string"
- },
- "loop": {
- "description": "Expression resolving to a list to repeat this element over",
- "type": "string"
- },
- "ref": {
- "description": "Reference name for this element",
- "type": "string"
- },
- "type": {
- "const": "text",
- "type": "string"
- }
- },
- "required": [
- "type",
- "content"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "channels": {
- "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
- },
- "if": {
- "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
- },
- "loop": {
- "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
- },
- "ref": {
- "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
- },
- "title": {
- "description": "Message title (email subject, push title, etc.)",
- "type": "string"
- },
- "type": {
- "const": "meta",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "align": {
- "enum": [
- "center",
- "left",
- "right",
- "full"
- ],
- "type": "string"
- },
- "altText": {
- "type": "string"
- },
- "channels": {
- "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
- },
- "href": {
- "description": "Link the image points to",
- "type": "string"
- },
- "if": {
- "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
- },
- "loop": {
- "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
- },
- "ref": {
- "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
- },
- "src": {
- "description": "Image URL",
- "type": "string"
- },
- "type": {
- "const": "image",
- "type": "string"
- },
- "width": {
- "description": "Rendered width, e.g. \"300px\"",
- "type": "string"
- }
- },
- "required": [
- "type",
- "src"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "actionId": {
- "type": "string"
- },
- "align": {
- "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/2/properties/align"
- },
- "backgroundColor": {
- "type": "string"
- },
- "channels": {
- "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
- },
- "content": {
- "description": "Button or link label",
- "type": "string"
- },
- "href": {
- "description": "URL the action opens",
- "type": "string"
- },
- "if": {
- "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
- },
- "loop": {
- "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
- },
- "ref": {
- "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
- },
- "style": {
- "enum": [
- "button",
- "link"
- ],
- "type": "string"
- },
- "type": {
- "const": "action",
- "type": "string"
- }
- },
- "required": [
- "type",
- "content",
- "href"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "channels": {
- "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
- },
- "color": {
- "type": "string"
- },
- "if": {
- "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
- },
- "loop": {
- "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
- },
- "ref": {
- "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
- },
- "type": {
- "const": "divider",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "align": {
- "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/2/properties/align"
- },
- "borderColor": {
- "type": "string"
- },
- "channels": {
- "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
- },
- "content": {
- "type": "string"
- },
- "if": {
- "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
- },
- "loop": {
- "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
- },
- "ref": {
- "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
- },
- "textStyle": {
- "enum": [
- "text",
- "h1",
- "h2",
- "subtext"
- ],
- "type": "string"
- },
- "type": {
- "const": "quote",
- "type": "string"
- }
- },
- "required": [
- "type",
- "content"
- ],
- "type": "object"
- }
- ]
- },
- {
- "additionalProperties": false,
- "properties": {
- "channel": {
- "description": "Channel these elements target, e.g. \"email\", \"push\", \"inbox\"",
- "type": "string"
- },
- "channels": {
- "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
- },
- "elements": {
- "description": "Elements rendered for this channel",
- "items": {
- "$ref": "#/properties/content/properties/elements/items"
- },
- "type": "array"
- },
- "if": {
- "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
- },
- "loop": {
- "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
- },
- "raw": {
- "additionalProperties": {},
- "description": "Channel-native payload passed through untouched",
- "type": "object"
- },
- "ref": {
- "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
- },
- "type": {
- "const": "channel",
- "type": "string"
- }
- },
- "required": [
- "type",
- "channel"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "channels": {
- "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
- },
- "elements": {
- "description": "Grouped elements",
- "items": {
- "$ref": "#/properties/content/properties/elements/items"
- },
- "type": "array"
- },
- "if": {
- "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
- },
- "loop": {
- "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
- },
- "ref": {
- "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
- },
- "type": {
- "const": "group",
- "type": "string"
- }
- },
- "required": [
- "type",
- "elements"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "align": {
+ "enum": [
+ "center",
+ "left",
+ "right",
+ "full"
+ ],
+ "type": "string"
+ },
+ "background_color": {
+ "type": "string"
+ },
+ "border_color": {
+ "type": "string"
+ },
+ "border_size": {
+ "type": "string"
+ },
+ "channels": {
+ "description": "Restrict this element to these channels",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "content": {
+ "description": "The text to render",
+ "type": "string"
+ },
+ "font_size": {
+ "description": "CSS px size, e.g. \"16px\"",
+ "type": "string"
+ },
+ "format": {
+ "const": "markdown",
+ "description": "Set to \"markdown\" to render markdown",
+ "type": "string"
+ },
+ "if": {
+ "description": "Expression; the element renders only when truthy",
+ "type": "string"
+ },
+ "line_height": {
+ "type": "string"
+ },
+ "locales": {
+ "additionalProperties": {
+ "additionalProperties": false,
+ "properties": {
+ "content": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "Overrides keyed by locale code",
+ "type": "object"
+ },
+ "loop": {
+ "description": "Expression resolving to a list to repeat this element over",
+ "type": "string"
+ },
+ "padding": {
+ "type": "string"
+ },
+ "ref": {
+ "description": "Reference name for this element",
+ "type": "string"
+ },
+ "text_style": {
+ "enum": [
+ "text",
+ "h1",
+ "h2",
+ "h3",
+ "subtext"
+ ],
+ "type": "string"
+ },
+ "type": {
+ "const": "text",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "channels": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
+ },
+ "if": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
+ },
+ "locales": {
+ "additionalProperties": {
+ "additionalProperties": false,
+ "properties": {
+ "title": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "Overrides keyed by locale code",
+ "type": "object"
+ },
+ "loop": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
+ },
+ "ref": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
+ },
+ "title": {
+ "description": "Message title (email subject, push title, etc.)",
+ "type": "string"
+ },
+ "type": {
+ "const": "meta",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "align": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/align"
+ },
+ "alt_text": {
+ "type": "string"
+ },
+ "border_color": {
+ "type": "string"
+ },
+ "border_size": {
+ "type": "string"
+ },
+ "channels": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
+ },
+ "href": {
+ "description": "Link the image points to",
+ "type": "string"
+ },
+ "if": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
+ },
+ "locales": {
+ "additionalProperties": {
+ "additionalProperties": false,
+ "properties": {
+ "href": {
+ "type": "string"
+ },
+ "src": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "Overrides keyed by locale code",
+ "type": "object"
+ },
+ "loop": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
+ },
+ "padding": {
+ "type": "string"
+ },
+ "ref": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
+ },
+ "src": {
+ "description": "Image URL",
+ "type": "string"
+ },
+ "type": {
+ "const": "image",
+ "type": "string"
+ },
+ "width": {
+ "description": "Rendered width, e.g. \"300px\"",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "src"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "action_id": {
+ "description": "Identifier reported with click tracking",
+ "type": "string"
+ },
+ "align": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/align"
+ },
+ "background_color": {
+ "description": "Fill for `button`; border and label color for `secondary`",
+ "type": "string"
+ },
+ "border_radius": {
+ "type": "string"
+ },
+ "border_size": {
+ "type": "string"
+ },
+ "channels": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
+ },
+ "content": {
+ "description": "Button or link label",
+ "type": "string"
+ },
+ "disable_tracking": {
+ "description": "Skip click tracking for this href",
+ "type": "boolean"
+ },
+ "font_size": {
+ "type": "string"
+ },
+ "href": {
+ "description": "URL the action opens",
+ "type": "string"
+ },
+ "if": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
+ },
+ "locales": {
+ "additionalProperties": {
+ "additionalProperties": false,
+ "properties": {
+ "content": {
+ "type": "string"
+ },
+ "href": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "Overrides keyed by locale code",
+ "type": "object"
+ },
+ "loop": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
+ },
+ "padding": {
+ "type": "string"
+ },
+ "ref": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
+ },
+ "style": {
+ "description": "How prominent the action is. `button` (default) is filled, `secondary` and `tertiary` are the other two button styles, and `link` is inline text",
+ "enum": [
+ "button",
+ "secondary",
+ "tertiary",
+ "link"
+ ],
+ "type": "string"
+ },
+ "type": {
+ "const": "action",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "content",
+ "href"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "border_width": {
+ "type": "string"
+ },
+ "channels": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
+ },
+ "color": {
+ "type": "string"
+ },
+ "if": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
+ },
+ "loop": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
+ },
+ "padding": {
+ "type": "string"
+ },
+ "ref": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
+ },
+ "type": {
+ "const": "divider",
+ "type": "string"
+ },
+ "width": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "align": {
+ "enum": [
+ "center",
+ "left",
+ "right",
+ "full",
+ "justify"
+ ],
+ "type": "string"
+ },
+ "border_color": {
+ "type": "string"
+ },
+ "border_size": {
+ "type": "string"
+ },
+ "channels": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
+ },
+ "content": {
+ "type": "string"
+ },
+ "font_size": {
+ "type": "string"
+ },
+ "if": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
+ },
+ "line_height": {
+ "type": "string"
+ },
+ "locales": {
+ "additionalProperties": {
+ "additionalProperties": false,
+ "properties": {
+ "content": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "Overrides keyed by locale code",
+ "type": "object"
+ },
+ "loop": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
+ },
+ "padding": {
+ "type": "string"
+ },
+ "ref": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
+ },
+ "text_style": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/text_style"
+ },
+ "type": {
+ "const": "quote",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "content"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "channels": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
+ },
+ "content": {
+ "description": "Raw HTML, rendered as-is",
+ "type": "string"
+ },
+ "if": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
+ },
+ "locales": {
+ "additionalProperties": {
+ "additionalProperties": false,
+ "properties": {
+ "content": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "Overrides keyed by locale code",
+ "type": "object"
+ },
+ "loop": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
+ },
+ "ref": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
+ },
+ "type": {
+ "const": "html",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "content"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "channel": {
+ "description": "Channel these elements target, e.g. \"email\", \"push\", \"inbox\"",
+ "type": "string"
+ },
+ "channels": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
+ },
+ "elements": {
+ "description": "Elements rendered for this channel",
+ "items": {
+ "$ref": "#/properties/content/properties/elements/items"
+ },
+ "type": "array"
+ },
+ "if": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
+ },
+ "loop": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
+ },
+ "raw": {
+ "additionalProperties": {},
+ "description": "Channel-native payload passed through untouched",
+ "type": "object"
+ },
+ "ref": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
+ },
+ "type": {
+ "const": "channel",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "channel"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "channels": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
+ },
+ "elements": {
+ "description": "Grouped elements",
+ "items": {
+ "$ref": "#/properties/content/properties/elements/items"
+ },
+ "type": "array"
+ },
+ "if": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
+ },
+ "loop": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
+ },
+ "ref": {
+ "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
+ },
+ "type": {
+ "const": "group",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "elements"
+ ],
+ "type": "object"
+ }
+]