-
Notifications
You must be signed in to change notification settings - Fork 83
Closed
Labels
enhancementv2Feature will be implemented in v2.0 only (master branch)Feature will be implemented in v2.0 only (master branch)
Description
In some cases certain attribute of data type might be sensitive so it should be excluded from toString method.
The only way to support this is to introduce custom annotation on type declaration that will mark fields as sensitive:
annotationTypes:
isSensitive:
type: boolean
allowedTargets: TypeDeclaration
types:
User: # kind can equal `User`; default value for `discriminatorValue`
type: object
properties:
userId:
type: integer
salary:
type: integer
(isSensitive): true
So, the plugin will recognize annotation called isSensitive and will skip annotated attribute from toString method.
Metadata
Metadata
Assignees
Labels
enhancementv2Feature will be implemented in v2.0 only (master branch)Feature will be implemented in v2.0 only (master branch)