Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
rolled back to a previous version of go
Browse files Browse the repository at this point in the history
Signed-off-by: Holly Hunt <holly.hunt1101@hotmail.com>
  • Loading branch information
Wyvinar committed Apr 26, 2024
1 parent bf9f677 commit 51fe084
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module galasa.dev/buildUtilities

go 1.22.1
go 1.21.7

require (
github.com/spf13/cobra v1.1.3
Expand Down
2 changes: 1 addition & 1 deletion openapi2beans/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/dev-galasa/buildutils/openapi2beans

go 1.22.2
go 1.21.7

require (
github.com/galasa-dev/cli v0.32.0
Expand Down
2 changes: 1 addition & 1 deletion openapi2beans/pkg/generator/schema2package.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func propertyToJavaType(property *Property) string {

if property.IsCollection() {
dimensions := property.cardinality.max / MAX_ARRAY_CAPACITY
for range dimensions {
for i := 1; i < dimensions; i++ {
javaType += "[]"
}
}
Expand Down
2 changes: 1 addition & 1 deletion openapi2beans/pkg/generator/schema2package_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func getExpectedType(schemaProp *Property) string {
}
if schemaProp.cardinality.max > 1 {
dimensions := schemaProp.cardinality.max / MAX_ARRAY_CAPACITY
for range dimensions {
for i := 1; i < dimensions; i++ {
expectedType += "[]"
}
}
Expand Down

0 comments on commit 51fe084

Please sign in to comment.