Skip to content

Commit 61e044c

Browse files
committed
fix: use parameter generateTimestamp to suppress timestamp in @generated annotation #433
Signed-off-by: anessi <16045045+anessi@users.noreply.github.com>
1 parent 4e2766b commit 61e044c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

template/src/main/java/com/asyncapi/model/$$objectSchema$$.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* {{ line | safe}}{% endfor %}{% if schema.examples() %}
2222
* Examples: {{schema.examples() | examplesToString | safe}}{% endif %}
2323
*/{% endif %}
24-
@Generated(value="com.asyncapi.generator.template.spring", date="{{''|currentTime }}")
24+
@Generated(value="com.asyncapi.generator.template.spring"{% if params.generateTimestamp === 'true' %}, date="{{''|currentTime }}"{%- endif %})
2525
public class {{schemaName | camelCase | upperFirst}} {
2626
{% for propName, prop in schema.properties() %}
2727
{%- set isRequired = propName | isRequired(schema.required()) %}

0 commit comments

Comments
 (0)