mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
2.0
This commit is contained in:
@@ -200,7 +200,7 @@ public class SwaggerDocParser implements DocParser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected String getResponseRef(JSONObject docInfo) {
|
protected String getResponseRef(JSONObject docInfo) {
|
||||||
String ref = Optional.ofNullable(docInfo.getJSONObject("responses"))
|
return Optional.ofNullable(docInfo.getJSONObject("responses"))
|
||||||
.flatMap(jsonObject -> Optional.ofNullable(jsonObject.getJSONObject("200")))
|
.flatMap(jsonObject -> Optional.ofNullable(jsonObject.getJSONObject("200")))
|
||||||
.flatMap(jsonObject -> Optional.ofNullable(jsonObject.getJSONObject("schema")))
|
.flatMap(jsonObject -> Optional.ofNullable(jsonObject.getJSONObject("schema")))
|
||||||
.flatMap(jsonObject -> {
|
.flatMap(jsonObject -> {
|
||||||
@@ -216,7 +216,6 @@ public class SwaggerDocParser implements DocParser {
|
|||||||
return Optional.of($ref);
|
return Optional.of($ref);
|
||||||
})
|
})
|
||||||
.orElse("");
|
.orElse("");
|
||||||
return ref;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user