Files
markitect-tool/examples/contracts/business-letter.contract.md

44 lines
785 B
Markdown

---
title: Business Letter Contract
version: "0.1"
---
# Business Letter Contract
```yaml contract
id: business-letter-contract-v1
document:
type: business-letter
fields:
recipient_name:
type: string
required: true
source: context.recipient.name
sender_name:
type: string
required: true
source: context.sender.name
sections:
- id: greeting
title: Greeting
presence: required
level: 2
- id: body
title: Body
presence: required
level: 2
metrics:
words:
min: 40
max: 350
severity: warning
- id: closing
title: Closing
presence: required
level: 2
rubrics:
- id: tone-fit
scope: section.body
criteria: The body should match the relationship and communication purpose.
```