Skip to content

Commit ea7e047

Browse files
committed
fix: use string as type for date like it's used in the upstream
1 parent f51efe6 commit ea7e047

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/go/model_simple.mustache

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,9 @@ func set{{classname}}{{getter}}AttributeType(arg *{{classname}}{{getter}}Attribu
256256
{{#isDate}}
257257
{{! special handling for date}}
258258
// isDate
259-
type {{classname}}{{getter}}AttributeType = *time.Time
260-
type {{classname}}{{getter}}ArgType = {{#isNullable}}*{{/isNullable}}time.Time
261-
type {{classname}}{{getter}}RetType = {{#isNullable}}*{{/isNullable}}time.Time
259+
type {{classname}}{{getter}}AttributeType = *string
260+
type {{classname}}{{getter}}ArgType = {{#isNullable}}*{{/isNullable}}string
261+
type {{classname}}{{getter}}RetType = {{#isNullable}}*{{/isNullable}}string
262262
func get{{classname}}{{getter}}AttributeTypeOk(arg {{classname}}{{getter}}AttributeType) (ret {{classname}}{{getter}}RetType, ok bool) {
263263
if arg == nil {
264264
{{#isNullable}}

0 commit comments

Comments
 (0)