fix(接口测试): 解决接口测试swagger3导入丢失非引用属性的值的问题
https://www.tapd.cn/55049933/bugtrace/bugs/view?bug_id=1155049933001017816 --user=郭雨琦
This commit is contained in:
parent
6f104078e6
commit
c31736561c
|
@ -478,9 +478,6 @@ public class Swagger3Parser extends SwaggerAbstractParser {
|
|||
|
||||
private JsonSchemaItem parseSchema(Schema schema, Set<String> refSet) {
|
||||
if (schema == null) return null;
|
||||
if (StringUtils.isBlank(schema.get$ref()) && schema.getProperties() == null && refSet.isEmpty() && schema.getExample() == null) {
|
||||
return null;
|
||||
}
|
||||
JsonSchemaItem item = new JsonSchemaItem();
|
||||
if (schema.getRequired() != null) {
|
||||
item.setRequired(schema.getRequired());
|
||||
|
|
Loading…
Reference in New Issue