ZDDC/tables/sample/MDL.table.yaml
2026-06-11 13:32:31 -05:00

41 lines
1.1 KiB
YAML

# Master Deliverables List — table spec.
#
# Columns are an explicit ordered subset of the row schema. The renderer
# does not auto-derive columns from the schema. `field` is either a
# top-level key on the row YAML or a JSON Pointer (RFC 6901) for nested
# values.
title: Master Deliverables List
description: Sample MDL spec used for development and tests.
# Path to the form spec that defines each row's JSON schema. Click-row
# in the table opens this form for the picked row. The form spec must be
# named <name>.form.yaml where <name> matches both the rows directory
# basename and the .zddc declaration key (here: MDL).
rowSchema: ./MDL.form.yaml
# Directory of *.yaml row files, relative to this spec. Non-recursive.
rows: ./MDL
columns:
- field: id
title: ID
width: 7em
sort: asc
- field: title
title: Deliverable
- field: party
title: Party
enum: [Acme, Beta, Gamma]
- field: dueDate
title: Due
format: date
- field: status
title: Status
enum: [pending, submitted, accepted, rejected]
defaults:
sort:
- { field: dueDate, dir: asc }
filter:
status: [pending, submitted]