ManifestTree
The JSON shape of a Manifest, as a tree of plain values: a JSON object is a Map<String, Any?> (insertion ordered when written), an array a List<Any?>, and a scalar a String, Number, Boolean or null. Any JSON library writes and reads such a tree, so the Manifest's field names are defined here once and wow-manifest needs none.
Absent optional values (a null description, unknown produces, derives, schedules or transformsTo, a fragment's service, a subscription's retry or job) are left out, not written as null, and so are a subscription source's nullableState and a command's mounted, system and internal when false, an aggregate's ownership when it is OWNER, the default, its idSource when it is ASSIGNED, the default, its retired events and its access attributes when it has none, an access attribute's multiple when false, and the requires of the Manifest, a context or an aggregate when it has none (written sorted and distinct, so the Manifest is byte-stable). Names and error codes follow one grammar each (the schema's patterns), a $defs key is a type's binary name (a.b.Page(a.b.Item?)), and a nullable reference is anyOf of {"type": "null"} and its $ref: Guide › The Manifest and Compatibility gives each.
Properties
Functions
Reads tree, the JSON object of a Manifest; fails on a missing field, another Manifest.FORMAT, a marker of requires this reader does not understand (ManifestFeatures) on the Manifest, a context or an aggregate (the whole read is refused, naming where the marker stands), a context whose name breaks ContextName, a context name listed twice, an aggregate name listed twice in one context, or an access attribute whose name breaks AccessAttributeName. A name is an entry's identity (its routes, its topics, its generated code), so a reader never takes one of two entries of a name for the other.