Forum Discussion

umadondapati's avatar
Occasional Visitor
4 years ago

issue: @JSONFORMAT to be added to the model being generated by swagger-generator

Could anybody please help in this issue.


There is model being generated by swagger-generator with LocalDate type field, but that field will be populated with JSON string date, hence while parsing the JSON with date, parsing is being done with default date format instead one which is needed to support the format being provided in the JSON.


Hence i have tried manually adapting the model variable with @JSONFORMAT with required format to parse and it worked.


But now I need this to be generated by swagger-generator instead of me changing in the model.

No RepliesBe the first to reply