Establish shared domain schemas and offline validation
This commit is contained in:
56
README.md
56
README.md
@@ -1,2 +1,56 @@
|
||||
# campaign-schemas
|
||||
# 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.party.v1` | [Party](docs/party.md) | [party.schema.json](schemas/party.schema.json) |
|
||||
| Campaign | `maximumdirect.campaign.v1` | [Campaign](docs/campaign.md) | [campaign.schema.json](schemas/campaign.schema.json) |
|
||||
| Glossary | `maximumdirect.glossary.v1` | [Glossary](docs/glossary.md) | [glossary.schema.json](schemas/glossary.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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user