Files
schemas/README.md

57 lines
2.5 KiB
Markdown
Raw Normal View History

# Maximum Direct shared schemas
Language-neutral contracts for shared domain inputs. Author information once in
YAML or JSON, validate the completed document, and let each consumer derive the
view required by its task.
| Document | Contract | Semantics | Schema |
| --- | --- | --- | --- |
| Party | `maximumdirect.rpg.party.v1` | [Party](rpg/party/v0.1.0/semantics.md) | [party.schema.json](rpg/party/v0.1.0/schema.json) |
| Campaign | `maximumdirect.rpg.campaign.v1` | [Campaign](rpg/campaign/v0.1.0/semantics.md) | [campaign.schema.json](rpg/campaign/v0.1.0/schema.json) |
| Glossary | `maximumdirect.glossary.v1` | [Glossary](glossary/v0.1.0/semantics.md) | [glossary.schema.json](glossary/v0.1.0/schema.json) |
Start with the synthetic [examples](examples). Every standalone document has a
`schema_version`. Glossaries contain named collections under `collections`.
Additional fields are permitted; consumers define which extensions they support.
Application settings, prompts, credentials, and reference vocabulary belong in
their respective repositories.
## Validate
Install Go 1.27 or later and prepare the pinned dependencies:
```sh
go mod download
go run ./cmd/validate examples/party.yml examples/campaign.yml examples/glossary.yml
go test ./...
```
[Validation](docs/validation.md) defines the YAML profile, command, and semantic
checks. ConfigKit owns composition before the completed-document boundary.
The Go harness is a development tool, not a consumer SDK.
## Select a distribution
`VERSION` identifies the schema-set candidate, initially `v1.0.0`. Publication is
separate from implementation. Select an immutable tag using the
[release procedure](docs/release.md), then bundle the complete `schemas/`
directory and [semantic documentation](docs/compatibility.md) for offline use.
For example, after publication:
```text
https://forge.maximumdirect.net/eric/schemas/archive/v1.0.0.tar.gz
https://forge.maximumdirect.net/eric/schemas/raw/tag/v1.0.0/schemas/glossary.schema.json
```
The raw URL is also that schema's `$id`. Its tag identifies the schema-set
release; document headers carry only the major contract version. Existing
applications require their own adoption work. See the
[consumer compatibility inventory](docs/compatibility.md#existing-consumers).
Contributors start with [development](docs/development.md).
Original material is dedicated to the public domain under [CC0 1.0](COPYRIGHT).
[Open Source attribution notices](docs/oss/attribution.md) identify incorporated material and dependencies.
2026-11-28 19:09:08 +00:00