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 c6da55e
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 14 deletions.
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 c6da55e

Please sign in to comment.