cancel
Showing results for 
Search instead for 
Did you mean: 

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

Highlighted
Occasional Visitor

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.

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors