znv
znv copied to clipboard
Add valueStringifier for reporting
This PR adds an optional valueStringifier
property in the DetailedSpec
that allows the user to customize the way the received value is displayed in the errors report.
This allows secrets to be redacted to prevent them from appearing in the logs for example.
If not provided, it defaults to using JSON.stringify
, thus preserving backward compatibility.