Skip to content

Schemas

What is a Schema?

A Schema in YuzeData defines the structure of data flowing through your integrations. It acts as a contract that specifies what fields exist, their data types, and validation rules.

Schemas ensure data consistency across your workflows by defining exactly what data looks like when it moves between systems.

Schema Sources

YuzeData provides two types of schemas:

SourceDescription
Built-in SchemasPre-defined by the platform for common use cases. Cannot be modified.
Custom SchemasCreated for your specific integration needs. Fully editable.

Fields and Data Types

Each schema consists of fields that define individual pieces of data.

Schema Structure

Field Properties

PropertyDescription
CodeUnique identifier for the field within the schema
Display NameHuman-readable name shown in the interface
Data TypeThe kind of data the field holds (see Available Data Types below)
RequiredWhether the field must contain a value
OptionsPre-defined list of allowed values (creates a dropdown)

Available Data Types

Data TypeDescriptionExample
TextFree-form text strings"Hello World"
NumberNumeric values (integers and decimals)42, 3.14
BooleanTrue or false valuestrue, false
DateTimeDate and time combined2026-01-15T14:30:00
DateOnlyDate without time2026-01-15
TimeOnlyTime without date14:30:00
TimeSpanDuration or time interval02:30:00 (2 hours 30 minutes)
DateTimeOffsetDate and time with timezone offset2026-01-15T14:30:00+02:00
GuidGlobally unique identifier550e8400-e29b-41d4-a716-446655440000
BinaryBinary data stored as base64File contents, images
ReferenceDataReference to a master data itemmaster-data:Equipment:PUMP-001
OptionsOne value from a pre-defined listDropdown selection
ArrayOfTextList of text values["tag1", "tag2", "tag3"]
DictionaryOfTextKey-value pairs of text{"key": "value"}

Complex Fields

Fields can contain nested structures for more sophisticated data:

StructureDescription
Sub-fieldsFields containing nested object structures
ArraysFields containing lists of items

Schema Fields vs Connector Settings

YuzeData distinguishes between two types of field definitions:

TypeUsed ForExample
Schema FieldsDefining the structure of data (datapoints, master data)A "Temperature" field of type Number in a sensor readings schema
Connector SettingsConfiguring connector and operation behaviorAn "API Key" setting marked as secret, or a "Polling Interval" with a default value

Schema fields define what data looks like — they appear in schema editors, datapoint explorers, and data feeds. Connector settings define how connectors behave — they appear in connector and workflow step configuration, and support additional properties like secret values, default values, and UI grouping.

TIP

When creating schemas for your data, you work with schema fields. You only encounter connector settings when configuring connectors or workflow steps.

Versioning

Schemas use versioning to manage changes safely without breaking existing integrations.

Version Format

Schemas use Major.Minor versioning (e.g., 1.0, 1.1, 2.0). Each version is uniquely identified by a Schema Version ID that combines the schema code and version number:

schema-version::{schema-code}::{major}.{minor}

For example: schema-version::customer-data::1.0

Schema Usage

Schemas connect to multiple parts of the platform:

Datapoints

Datapoints can be associated with a schema that defines their structure, fields, and data types.

Workflow Steps

Workflow steps use schemas to define their data inputs and outputs:

  • Consumes: The schema defining input data the workflow step processes
  • Produces: The schema defining output data the workflow step creates

Connector Operations

Each connector operation has schemas for its data:

  • Input Schema: Data structure the connector expects to receive
  • Output Schema: Data structure the connector returns

Master Data

Master data types can optionally use schemas to define the structure of their items.

Schema Mappings

Schema mappings transform data between different schemas:

Mapping TypeDescription
Field-to-fieldDirect mapping from source field to target field
Fixed valueProvide a constant value for a target field
ExpressionTransform data using expressions