Skip to content

Data schema

A data schema describes the structure and rules of data. It defines fields and data types, for example; provenance and freshness are additional questions.

APIs & Integration

A data schema describes how data should be structured. It can define fields, data types, relationships and constraints. The schema might concern a record or an exchanged message, for example.

Agree to keep an identifier as text

In a fictional product data exchange, the item identifier "0042" should remain a string. A suitable schema can define the field’s type. That alone does not establish which system may assign this identifier or which state of the product data is transferred.

Check structure and meaning together

Confluent describes a schema as a specification for the structure of message data. JSON Schema is one possible language for these rules with JSON data. The meaning of a value also needs agreement: a stock field might mean available stock or total stock, for example. The same field name and numeric type do not answer that question. Alongside the structure, check the meaning, provenance and required time context of the data.

Sources

Articles on this topic

APIs & Integration with ASES

ERP, CRM and shop cleanly connected