Establish shared domain schemas and offline validation
This commit is contained in:
37
docs/campaign.md
Normal file
37
docs/campaign.md
Normal file
@@ -0,0 +1,37 @@
|
||||
# Campaign contract
|
||||
|
||||
Contract: `maximumdirect.campaign.v1`. [Schema](../schemas/campaign.schema.json).
|
||||
The [validation profile](validation.md) and [compatibility rules](compatibility.md)
|
||||
apply. See the [example](../examples/campaign.yml).
|
||||
|
||||
| Field | Required | Meaning |
|
||||
| --- | --- | --- |
|
||||
| `schema_version` | Yes | Exactly `maximumdirect.campaign.v1`. |
|
||||
| `id` | Yes | Nonempty stable campaign identity, independent of its display name. |
|
||||
| `name` | No | Nonempty campaign display name. |
|
||||
| `description` | No | Free text campaign context; an empty string is valid. |
|
||||
| `setting` | No | Nonempty domain setting label or identifier. |
|
||||
| `system` | No | Nonempty game-system label or identifier. |
|
||||
| `references` | No | Relationships to domain documents. |
|
||||
| `references.party` | No | Nonempty locator for a party document. |
|
||||
| `references.glossaries` | No | List of nonempty locators for glossary documents; may be empty. |
|
||||
|
||||
Optional fields accept omission, not null. An empty `references` object is
|
||||
valid. Objects allow additional fields. IDs, labels, and locator strings are
|
||||
preserved without normalization. The issuer supplies the identity's namespace;
|
||||
this contract does not require globally unique campaign IDs.
|
||||
|
||||
References are locator strings, including URI references and relative file
|
||||
references. Consumers select supported locator forms and resolve relative
|
||||
references against the domain document's location (or a base
|
||||
provided with an in-memory document). Resolving authored configuration paths
|
||||
before this boundary remains the composing application's responsibility.
|
||||
References express relationships; the harness neither fetches them nor requires
|
||||
local installation. List order does not prescribe merge order, precedence, or
|
||||
execution. Those belong to the consuming application.
|
||||
|
||||
This document records shared context. Narratio's `campaign.yml` remains
|
||||
application configuration with its own operational fields. Session templates,
|
||||
speaker-file choices, execution paths, provider policy, and credentials are
|
||||
outside the defined shared campaign fields. Additional fields gain no execution
|
||||
or credential semantics through schema conformance.
|
||||
Reference in New Issue
Block a user