Parse a RequiredMetadataKeys declaration into a list of key names.
Accepts a JSON array (["OrganizationID","ContentSourceID"]) or a comma-separated
string, because both shapes turn up in hand-authored metadata. Returns an empty array
when nothing is declared.
Parameters
raw: string
Returns string[]
Throws
when a value IS declared but cannot be parsed. A malformed contract must
not silently degrade to "no contract" — that would turn a typo into an unguarded lane,
which is the exact failure this feature exists to prevent.
Parse a
RequiredMetadataKeysdeclaration into a list of key names.Accepts a JSON array (
["OrganizationID","ContentSourceID"]) or a comma-separated string, because both shapes turn up in hand-authored metadata. Returns an empty array when nothing is declared.