We need to generate the models of one of our classes with the @JsonSerialize annotation

16 views
Skip to first unread message

Anuj Kathuria

unread,
May 28, 2015, 2:39:06 AM5/28/15
to swagger-sw...@googlegroups.com
One of our generated models uses the following

 @JsonSerialize(using = ToStringSerializer.class)

protected BigDecimal value;


Is there a way to modify the codegen template to generate the annotation to serialize the value as a JSON String ( in double quotes)?


Thanks

wing328

unread,
Jun 1, 2015, 10:56:49 PM6/1/15
to swagger-sw...@googlegroups.com
Is the following what you're looking for?



Anuj Kathuria於 2015年5月28日星期四 UTC+8下午2時39分06秒寫道:
Reply all
Reply to author
Forward
0 new messages