Design 47 H2: H-A-498 addendum, the copied manifest helper goes; the SDK's manifest type is the reader
This commit is contained in:
@@ -1202,3 +1202,9 @@ The lead's one-line answers to the questions H2's develop and review raise (impl
|
||||
module's test reads its manifest leniently (unknown fields ignored) and asserts only what the module itself
|
||||
promises (its claims, files, tools). Every copy of the helper (the 15 desktop modules, pacman, and any other test
|
||||
that decodes module.json strictly) drops the strict decode in one change. P3, principle 13 (no shared helper for it).
|
||||
- **H-A-498 addendum (the copied helper goes; the SDK's manifest type is the one reader, 01:35)** The operator, 22 Nov
|
||||
21:23: a test helper copied into each module "sounds wrong". The manifest's form is a contract every part reads
|
||||
through mesh-sdk's manifest package (principle 13's exception: a contract's records); so every module's test reads
|
||||
module.json through that package's type and reader, and the copied `manifest` struct and `readManifest` are deleted
|
||||
from all sixteen modules. The SDK's type knows every field the mesh reads (`class` included; if it does not, that
|
||||
is the sdk fault to fix first, said). The test asserts only the module's own promises.
|
||||
|
||||
Reference in New Issue
Block a user