Skip to content

Commit

Permalink
feat. add support formData []file (#1332)
Browse files Browse the repository at this point in the history
  • Loading branch information
otakukaze committed Sep 27, 2022
1 parent e4f0129 commit 74e96c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion operation.go
Expand Up @@ -226,7 +226,7 @@ func findInSlice(arr []string, target string) bool {
}

func (operation *Operation) parseArrayParam(param *spec.Parameter, paramType, refType, objectType string) error {
if !IsPrimitiveType(refType) {
if !IsPrimitiveType(refType) && !(refType == "file" && paramType == "formData") {
return fmt.Errorf("%s is not supported array type for %s", refType, paramType)
}

Expand Down

0 comments on commit 74e96c9

Please sign in to comment.