---
title: "Schema"
subtitle: "<Schema> and <SchemaSnippet> render a data structure defined in OpenAPI."
---

This component pulls data from the API reference, so it updates automatically with the OpenAPI spec. The examples below reference this site's [platform API](/api-reference).

Displays a type by its name in `components.schemas`: `<Schema>` (alias `<SchemaFields>`) shows a field table, and `<SchemaSnippet>` shows a JSON example.

```mdx
<Schema type="Deployment" />
<SchemaSnippet type="Deployment" title="Deployment example" />
```

<Schema type="Deployment" />

<SchemaSnippet type="Deployment" title="Deployment example" />

<ParamField path="type" type="string" required>Schema name.</ParamField>
<ParamField path="title" type="string">`SchemaSnippet` only: card title.</ParamField>
<ParamField path="highlight" type="string | array">`SchemaSnippet` only: lines to highlight.</ParamField>

In the page's `.md` version, `<Schema>` is a field table and `<SchemaSnippet>` a JSON code block.
