Currently, the POJO always contains a toString()-Method containing all fields.
This can be a problem if the POJO is logged and contains sensitive data.
I suggest a configuration-parameter "excludeToString" so that the toString method is not generated anymore.
As Lombok is widely used it's often the preferred way to generate this method:
- Setting configuration
additionalModelTypeAnnotations = @lombok.ToString
- Setting
x-field-extra-annotation: ""@lombok.ToString.Include"/ "@lombok.ToString.Exclude" in API.yaml
Of course I can customize the mustache template and use this but I think this feature might be useful for quite a lot of people.
I'd happily contribute this feature as PR.
Currently, the POJO always contains a toString()-Method containing all fields.
This can be a problem if the POJO is logged and contains sensitive data.
I suggest a configuration-parameter "excludeToString" so that the toString method is not generated anymore.
As Lombok is widely used it's often the preferred way to generate this method:
additionalModelTypeAnnotations = @lombok.ToStringx-field-extra-annotation: ""@lombok.ToString.Include"/ "@lombok.ToString.Exclude"in API.yamlOf course I can customize the mustache template and use this but I think this feature might be useful for quite a lot of people.
I'd happily contribute this feature as PR.