From 480fa0de2ddd070e9e99872cee119b5d9e8f8a1e Mon Sep 17 00:00:00 2001 From: DeleiGuo Date: Wed, 11 Oct 2023 20:46:34 +0800 Subject: [PATCH] fix:The generated Postman collection does not support file uploads --- src/main/java/com/ly/doc/template/IRestDocTemplate.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/com/ly/doc/template/IRestDocTemplate.java b/src/main/java/com/ly/doc/template/IRestDocTemplate.java index c0d5e2d3..aa3b4b24 100644 --- a/src/main/java/com/ly/doc/template/IRestDocTemplate.java +++ b/src/main/java/com/ly/doc/template/IRestDocTemplate.java @@ -985,7 +985,6 @@ default ApiRequestExample buildReqJson(DocJavaMethod javaMethod, ApiMethodDoc ap .collect(Collectors.groupingBy(e -> Objects.equals(e.getType(), DocGlobalConstants.PARAM_TYPE_FILE))); List fileFormDataList = formDataGroupMap.getOrDefault(Boolean.TRUE, new ArrayList<>()); if (hasFormDataUploadFile) { - formDataList = formDataGroupMap.getOrDefault(Boolean.FALSE, new ArrayList<>()); apiMethodDoc.setContentType(FILE_CONTENT_TYPE); }