Skip to content

Commit

Permalink
refactor: use string pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
byashimov committed Mar 18, 2024
1 parent 3d3e22a commit 120a16c
Show file tree
Hide file tree
Showing 31 changed files with 725 additions and 706 deletions.
2 changes: 1 addition & 1 deletion generator/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ func getType(s *Schema) *jen.Statement {

if s.isScalar() {
scalar := getScalarType(s)
if !s.required && s.Type != SchemaTypeString {
if !s.required {
return jen.Op("*").Add(scalar)
}

Expand Down
56 changes: 28 additions & 28 deletions handler/account/account.go

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

Loading

0 comments on commit 120a16c

Please sign in to comment.