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

Commit

Permalink
attempted security fix
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 29, 2024
1 parent 51fe084 commit 952a0bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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.21.7
go 1.21.6

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 i := 1; i < dimensions; i++ {
for i := 0; 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 i := 1; i < dimensions; i++ {
for i := 0; i < dimensions; i++ {
expectedType += "[]"
}
}
Expand Down

0 comments on commit 952a0bc

Please sign in to comment.