Skip to content

Commit

Permalink
fix: time fields type
Browse files Browse the repository at this point in the history
  • Loading branch information
byashimov committed Feb 9, 2024
1 parent 21a0508 commit 17cfe8f
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 15 deletions.
1 change: 0 additions & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ tasks:
- GEN_OUT_DIR={{.GEN_OUT_DIR}} go run -tags=generator ./generator/...
generate:
cmds:
- task: get-openapi-spec
- task: go-generate
- task: fmt-imports
test:
Expand Down
2 changes: 1 addition & 1 deletion generator/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func (s *Schema) init(doc *Doc, scope map[string]*Schema, name string) {
s.CamelName = strcase.ToCamel(s.parent.CamelName)
}

if s.Type == SchemaTypeString {
if s.Type == SchemaTypeString && s.name != "time" {
parts := strings.Split(s.name, "_")
switch parts[len(parts)-1] {
case "at", "time":
Expand Down
10 changes: 10 additions & 0 deletions handler/accountauthentication/accountauthentication.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions handler/kafkatopic/kafkatopic.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions handler/project/project.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions handler/service/service.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion handler/serviceuser/serviceuser.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 17cfe8f

Please sign in to comment.