fix(接口测试): 解决接口测试swagger3导入丢失非引用属性的值的问题

https://www.tapd.cn/55049933/bugtrace/bugs/view?bug_id=1155049933001017816
--user=郭雨琦
This commit is contained in:
guoyuqi 2022-10-27 18:26:39 +08:00 committed by xiaomeinvG
parent 6f104078e6
commit c31736561c
1 changed files with 0 additions and 3 deletions

View File

@ -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());