Skip to main content

12 docs tagged with "Schema examples"

View all tags

Conditionals schema examples

This Amplience numbers schema snippet shows how to define a schema with integer and number properties and how to constrain the values that the user can enter.

Content relationships example

This Amplience content relationships example shows the 3 different ways of structuring your content type schemas to allow users to combine content items.

Default keyword schema example

The properties in this schema example demonstrate how to make use of the default keyword. The default keyword allows you to set the default value of an item.

Delivery key schema example

This Amplience delivery key schema example shows how to define a delivery key in a content form to let end users enter delivery keys with other content.

Input field components

Components allow you to specify properties to define how a property will be displayed on the content form. For example, you can choose to display a number as a slider, allow text to be entered across multiple lines and control the way colors are chosen in the color picker.

Layout components

The content form can be used with layout components such as tabs and grids. These features help organise properties, making forms easier to use by grouping related fields together.

Lists schema example

This list schema snippet shows how to define lists in a content type schema using the array keyword, including lists of strings, images and content items.

Media schema example

This Amplience media schema snippet shows how to define image and video links in schemas so you can add assets from your Content Hub library to your content.

Numbers schema example

This Amplience numbers schema snippet shows how to define a schema with integer and number properties and how to constrain the values that the user can enter.

Text schema examples

These Amplience text schema examples show how to add text properties and includes some of the types of validation available, including patterns and enums.

Validation schema example

As part of the Amplience schema examples, this schema example demonstrates various validations available for text, numbers and arrays, and how to use.