generated from coulomb/repo-seed
Contract framework with markdown-native contracts utilizing fenced YAML blocks
This commit is contained in:
43
examples/contracts/business-letter.contract.md
Normal file
43
examples/contracts/business-letter.contract.md
Normal file
@@ -0,0 +1,43 @@
|
||||
---
|
||||
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.
|
||||
```
|
||||
Reference in New Issue
Block a user