date format condition added
This commit is contained in:
parent
0adb5c1ebe
commit
b97fb00ea4
|
|
@ -4,6 +4,9 @@
|
|||
{%- if field.type.type.baseTypeName == "DateTime" %}
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "{{ utils.getDateFormat(field) }}", timezone = "utc")
|
||||
{%- endif %}
|
||||
{%- if field.type.type.baseTypeName == "Date" %}
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "{{ utils.getDateFormat(field) }}")
|
||||
{%- endif %}
|
||||
{%- if field.nullable %}
|
||||
@JsonInclude(JsonInclude.Include.ALWAYS)
|
||||
{%- elseif field.optional %}
|
||||
|
|
|
|||
Loading…
Reference in New Issue