Skip to main content

The data format property is used as an extension of a data type to describe the structure and intent of the data. For example, a location has a data type of object, and a data format of location. Another example is a HTML block, which has a data type of string and a data format of html.

The data format is a string value and is designed to allow custom types to be added.

Supported data formats

The following list contains the data formats that are currently understood by Contensis:

Data format Data type Description Applicable Validations
entry object An entry format for storing content. required
allowedContentTypes
asset object An asset format that represents a file resource. required
allowedContentTypes
location object Represents a point on the surface of the Earth. required
quote object A quote with text and a source. required
requiredFields
dateRange object Represents a range of date times. required
min
max
pastDateTime
image object Wraps an Asset with an additional caption property. required
requiredFields
field objectArray Represents a composed type, defined as an objectArray data type. required
allowedFieldTypes
component.* object Represents a component type. The asterisk represents the component id. required
allowedFieldTypes
heading string Represents a document heading. required
html string A string of HTML markup. required
markdown string A string of markdown markup. required

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request