v0.7.0
validatePolicyJSON(Defined in: src/modules/validation.ts:681 Parses a JSON string and returns Either a PolicyJSON object or an error.policy
):Either
<RulesError
[],PolicyJSON
>
Parameter | Type | Description |
---|---|---|
policy | string | string to be parsed. |
Either
<RulesError
[], PolicyJSON
>
Either the parsed PolicyJSON object or an error.