Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
cyz-home committed Dec 7, 2023
2 parents 42bf01c + b280037 commit e9016a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions console/commands/js_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ func genJsRequest(p openapi.Parameters, swagger openapi.Spec) string {
case "array":
t = "[]"
if parameter.Format != "" {
if ty, ok := protoToSwagger[parameter.Format]; ok {
parameter.Format = ty
}
t = parameter.Format + t
} else if parameter.Items != nil {
t = getObjectStrFromRef(parameter.Items.Ref, swagger) + t
Expand Down

0 comments on commit e9016a9

Please sign in to comment.