oas3.1 initial support - fix oas3.1 code branch
@@ -1783,10 +1783,12 @@ public class OpenAPIDeserializer {
} else {
parameter.set$ref(ref.textValue());
}
+ if (result.isOpenapi31()) {
String desc = getString("description", obj, false, location, result);
if (StringUtils.isNotBlank(desc)) {
parameter.setDescription(desc);
}
+ }
return parameter;
} else {
result.invalidType(location, "$ref", "string", obj);
@@ -3587,7 +3589,6 @@ public class OpenAPIDeserializer {
}
} else {
result.invalidType(location, "$ref", "string", node);
- return null;
}
}
