Describe the bug
Invoking toString() on a generated record returns the default toString() result, inherited from Object.java. However, using openapi-generator would override this method, and output all fields and their corresponding values.
To Reproduce
Steps to reproduce the behavior:
Generate any record class.
Invoke toString() on the object
The result is not consistent with typical openapi-generator behaviour
Expected behavior
Implement the method similar to how openapi-generator typically does it.
Describe the bug Invoking
toString()
on a generatedrecord
returns the defaulttoString()
result, inherited fromObject.java
. However, usingopenapi-generator
would override this method, and output all fields and their corresponding values.To Reproduce Steps to reproduce the behavior:
record
class.toString()
on the objectopenapi-generator
behaviourExpected behavior Implement the method similar to how
openapi-generator
typically does it.Additional context & Versions used v2.2.0