Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide sensitive properties from toString() #1556

Open
Michal-Kubricht opened this issue Aug 14, 2023 · 1 comment
Open

Hide sensitive properties from toString() #1556

Michal-Kubricht opened this issue Aug 14, 2023 · 1 comment

Comments

@Michal-Kubricht
Copy link

It is in some cases useful to mark some property in JSON schema definition as a sensitive (or confidential) and thus making it hidden from generated toString() method.

Generator already contains a feature "toStringExcludes" which is global property specifying everything to be excluded from toString generation by name.

It would be advantage to have a definition of what to exclude inside the JSON schema. Idea would be to have it similarly to already existing feature excludedFromEqualsAndHashCode.

@Michal-Kubricht
Copy link
Author

Attempt to bring the feature: #1557

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant