-
Notifications
You must be signed in to change notification settings - Fork 108
Open
Description
Its a bit similar to the problem in #266
I have two requirements to not expose sensitive data
- To hide some values entirely (e.g. a the value of a password field). This would be driven by the name of the field (but still retain the structure)
- To alter some values from text fields, e.g. the value contains some secret
Ideally we would do (2) based on data at runtime
I could imagine that we could do (1) by some annotation that runs at compile time (but I am new to this library), and currently this is also expected to be a runtime setting. Maybe it could be both
For (2) I would imagine that the easiest solution would be subclassing JsonWriter (but this is a final class).
Happy to work on this with someone if that helps.
My first thought is that if we could make JsonWriter non final, I could do (2)
And then expose the field that we are writing (as a complile switch?) then this could do (1) as well, but I could cope without this probably
What are you thoughts
Metadata
Metadata
Assignees
Labels
No labels