znv icon indicating copy to clipboard operation
znv copied to clipboard

Add valueStringifier for reporting

Open pimartin opened this issue 1 year ago • 2 comments

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.

pimartin avatar Jul 23 '23 17:07 pimartin