Broadly speaking, schemas describe how data is organized in data structures.
Relational schemas describe how data is organized in relational databases. These schemas are often captured as DDL (data definition language) statements.
Here is an example of a relational schema expressed using DDL commands:
GraphQL schemas describe the shape of the data provided by GraphQL service.
Here is an example of a GraphQL schema:
JSON schemas describe the shapes of JSON documents. This then enables the annotation and validation of JSON documents.
Below is an example of a JSON schema:
Similar to JSON schemas, XML schemas describe the shapes of XML documents.
Below is an example of an XML schema:
OpenAPI documents describe entire APIs and utilise JSON Schema to describe the data structures.
Below is an example of an Avro schema:
Below is an example of a protocol buffers message:
Made by Anton Vasetenkov.
If you want to say hi, you can reach me on LinkedIn or via email. If you like my work, you can support me by buying me a coffee.