---
title: "DocExample"
description: "one example on a page, rendered in each language from one source and validated against its type"
section: concepts
address: /concepts/docexample
contract: 0476e35e6e275db5
---

# DocExample

one example on a page, rendered in each language from one source and validated against its type

[figure: DocExample is a value at none scope. The drawing shows its fields and the objects that they point at.]

| property | value |
|---|---|
| kind | value |
| scope | none |
| key | none |
| store | none |
| family | documentation |



## Fields


| field | type | required | note |
|---|---|---|---|
| `language` | `one of curl \| typescript \| python \| rust \| json \| sql` | yes |  |
| `code` | `text` | yes |  |
| `validates_against` | `text` | yes | a type of the register |



## Routes that use it
No route takes or returns DocExample directly. The record holds it, and the objects that point at it reach it.
