Manifest
The contract of a service: its bounded contexts, their aggregates with the commands and events they speak, and their subscriptions, with the JSON Schema 2020-12 of every payload in defs (written $defs).
The same type holds a module's fragment (META-INF/wow/manifest/<module>.json, without service) and a service's merged Manifest (ManifestMerger). It is plain data: ManifestTree turns it into the JSON tree any JSON library writes, and reads it back.
Names inside are relative to their parent: a command named AddItem of aggregate cart in context shop is the command type shop.cart.AddItem. A schema is referred to as #/$defs/<key> (schemaRef).
errors lists the framework's wow.* error codes with their HTTP statuses (FrameworkErrors): a fragment leaves it empty and ManifestMerger writes the table.
A command another part of the Manifest refers to (SubscriptionManifest.derives, SubscriptionManifest.rejected, SubscriptionManifest.committed, SubscriptionManifest.calls, SubscriptionManifest.schedules and AggregateManifest.schedules) is named by its name on the wire where the writer can name it: its full type name (shop.cart.RemoveCartItem), or a system command's system name (wow.lifecycle.TransferOwner). Otherwise it is the schema reference of its class (#/$defs/<binary name>, schemaRef), whose schema the document keeps in defs (schemaRefs). A module's fragment refers so to a command its module does not decide; the assembly of the service's Manifest (ManifestAssembly) names it by the one command a context of the service or a peer contract decides of that class (CommandReferences), and leaves its schema to the context that decides it. A class several commands share, which has no one name, or one no Manifest at hand decides, stays a schema reference with its schema. A context's peer contract keeps its fragment's references as they are (PeerContracts), with their schemas.
requires lists the markers a reader must understand to read this Manifest as it means (ManifestFeatures): a reader that does not know one refuses the Manifest rather than misread it. A marker may also stand on a context (ContextManifest.requires) or an aggregate (AggregateManifest.requires), for what only that part means; a reader that does not know it refuses the whole Manifest too, naming where it stands. A value a reader does not know elsewhere is read leniently (ManifestTree.read).
Fields may be added: pass the constructor's arguments by name.
Constructors
Properties
The markers a reader must understand to read this Manifest (ManifestFeatures); none in format 1 so far.
Every schema reference of the contexts, in declaration order: those of the aggregates (their system commands' included, and the commands they schedule by their schemas), then the context's own system commands', then the events the subscriptions take by their schemas (SubscriptionSource.eventSchemas) and the commands they refer to by their schemas, then the requests and responses of its service routes. Each keeps its schema in defs, so no reference dangles.
The schema references whose key is not in defs: a fragment before its schemas are generated has them all.
Functions
This Manifest without CLASS_KEYWORD in any schema of its $defs: what the public port serves.