Structure content

Learn how to define content for structures and unions.

This content type defines structured data such as maps, elements, and sections for structure schemas and union schemas.

Examples

Here are some examples of content definitions for structures:

12345678910111213141516171819
{
"type": "structure",
"attributes": {
"heading": {
"type": "text",
"value": {
"type": "static",
"value": "Sign up for free"
}
},
"subheading": {
"type": "text",
"value": {
"type": "static",
"value": "It only takes a few seconds."
}
}
}
}

Properties

The following list describes the supported properties:

type
string

The type of the value. Always structure for structures.

name(optional)
string

The name of the union variant as defined in the key of the union schema.

attributes
object<string,ContentDefinition>

The attributes of the structure, where the keys are the attribute names and the values are the corresponding content definitions.