In addition to validating values I want to identify and redact, remove, or otherwise scrub personally identifiable information (PII) from objects when logging.
I can create my own object hierarchy to point to which values in my objects are PII but it feels repetitive to me. If I could instead define custom properties on Ow predicates and then introspect them when logging then I would be able to programmatically redact/remove/scrub properties accordingly.
I suspect there are other use cases for metadata too but this is my current one.
Maybe this is already somewhat possible by me using my own ES6 Symbols to add properties to predicates but I still need a way to introspect nested predicates, etc. I'll also need to figure out the TypeScript augmentations to play nice if I add my own properties via symbols.
Now that I've written this up I'm wondering if augmenting Ow myself is the way to go or if adding metadata to Ow predicates is still a feature worth exploring. I would appreciate some advise/perspective here. Thank you.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too