Skip to content

Commit

Permalink
fix(generator): fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
CarbonC committed Oct 8, 2024
1 parent 9eaed44 commit 69d4bb2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/generator/schema_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -762,9 +762,11 @@ func (g *schemaGenerator) generateTypeInline(
return nil, err
}
}

if typeShouldBePointer {
return codegen.WrapTypeInPointer(codegen.ArrayType{Type: theType}), nil
}

return &codegen.ArrayType{Type: theType}, nil
}
}
Expand Down

0 comments on commit 69d4bb2

Please sign in to comment.