Open rjsargent opened 2 years ago
I'm pretty sure that Rowan is pretty thorough about validating the keys and values of the various fields in a metadata STON file. The number one error is that the hand-crafted .ston file is in an incorrect format with extra or missing ',', unbalanced '{}' or '[]'' or string delimiters ...
Correct syntax would be verified simply by loading the .stone files. Correct semantics should be checked. i.e. are the keys the correct names? Are all the ones that should be present actually so? Verify that the things that the files say should be there are actually there. i.e. Directories all exist. If components lists "Core", is there a Core.ston? If package X is cited, is there such a package in the source repository with a corresponding package.st file holding the correct name? Is a platform-specific condition well-formed? Warning for unrecognized platform identifiers?