# configuration/schemas/document.schema.ts

> 7 lines of code and 1 definition.

Tree: GovLab Docs
Language: typescript
Layer: infrastructure
Canonical: https://banes-lab.com/anatomy/docs#file-docs-configuration-schemas-document-schema-ts
Source text: https://banes-lab.com/source/docs/configuration/schemas/document.schema.ts.txt

Listed in [configuration/schemas](https://banes-lab.com/api/source/docs/configuration/schemas.md), after [configuration/schemas/agent.schema.ts](https://banes-lab.com/source/docs/configuration/schemas/agent.schema.ts.md) and before [configuration/schemas/readme.schema.ts](https://banes-lab.com/source/docs/configuration/schemas/readme.schema.ts.md).

## Definitions

- `DOC_ARCH_FRONTMATTER_SCHEMA` (lexical_declaration, line 5, exported)

## Contained in

- [configuration/schemas](https://banes-lab.com/anatomy/docs/folder-docs-configuration-schemas.md)

## Source

```typescript
import { DOC_STATUSES } from "#configuration/constants/document.constants";
import type { FrontmatterSchema } from "#types/metadata.types";
import { REF_CLAIMS } from "#configuration/constants/verb.constants";

export const DOC_ARCH_FRONTMATTER_SCHEMA: FrontmatterSchema = {
    fields: { status: { enum: DOC_STATUSES }, validates: { items: REF_CLAIMS } },
    required: ["status"],
};
```
