|
|
@ -158,12 +158,10 @@ public class SwaggerDocParser implements DocParser { |
|
|
|
for (int i = 0; i < parameters.size(); i++) { |
|
|
|
for (int i = 0; i < parameters.size(); i++) { |
|
|
|
JSONObject fieldJson = parameters.getJSONObject(i); |
|
|
|
JSONObject fieldJson = parameters.getJSONObject(i); |
|
|
|
JSONObject schema = fieldJson.getJSONObject("schema"); |
|
|
|
JSONObject schema = fieldJson.getJSONObject("schema"); |
|
|
|
if (schema != null) { |
|
|
|
RefInfo refInfo; |
|
|
|
RefInfo refInfo = getRefInfo(schema); |
|
|
|
if (schema != null && (refInfo = getRefInfo(schema)) != null ) { |
|
|
|
if (refInfo != null) { |
|
|
|
List<DocParameter> parameterList = this.buildDocParameters(refInfo.ref, docRoot, true); |
|
|
|
List<DocParameter> parameterList = this.buildDocParameters(refInfo.ref, docRoot, true); |
|
|
|
docParameterList.addAll(parameterList); |
|
|
|
docParameterList.addAll(parameterList); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
DocParameter docParameter = fieldJson.toJavaObject(DocParameter.class); |
|
|
|
DocParameter docParameter = fieldJson.toJavaObject(DocParameter.class); |
|
|
|
docParameterList.add(docParameter); |
|
|
|
docParameterList.add(docParameter); |
|
|
|