mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
4.2.0
This commit is contained in:
@@ -14,9 +14,7 @@ import org.apache.commons.lang.StringUtils;
|
|||||||
import org.apache.commons.lang3.math.NumberUtils;
|
import org.apache.commons.lang3.math.NumberUtils;
|
||||||
import org.springframework.beans.BeanUtils;
|
import org.springframework.beans.BeanUtils;
|
||||||
import org.springframework.util.CollectionUtils;
|
import org.springframework.util.CollectionUtils;
|
||||||
import org.springframework.util.DigestUtils;
|
|
||||||
|
|
||||||
import java.nio.charset.StandardCharsets;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
@@ -238,7 +236,7 @@ public class SwaggerDocParser implements DocParser {
|
|||||||
DocParameter docParameter = fieldInfo.toJavaObject(DocParameter.class);
|
DocParameter docParameter = fieldInfo.toJavaObject(DocParameter.class);
|
||||||
docParameter.setName(fieldName);
|
docParameter.setName(fieldName);
|
||||||
docParameter.setRequired(
|
docParameter.setRequired(
|
||||||
com.alibaba.nacos.common.utils.CollectionUtils.contains(requiredProperties, fieldName));
|
!CollectionUtils.isEmpty(requiredProperties) && requiredProperties.contains(fieldName));
|
||||||
if (extProperties != null) {
|
if (extProperties != null) {
|
||||||
JSONObject prop = extProperties.getJSONObject(fieldName);
|
JSONObject prop = extProperties.getJSONObject(fieldName);
|
||||||
if (prop != null) {
|
if (prop != null) {
|
||||||
|
Reference in New Issue
Block a user