merge
This commit is contained in:
parent
7084690296
commit
59ba99a3ba
|
@ -95,8 +95,12 @@ public class DocGlobalConstants {
|
|||
|
||||
public static final String FILE_CONTENT_TYPE = "multipart/form-data";
|
||||
|
||||
public static final String MULTIPART_TYPE = "multipart/form-data";
|
||||
|
||||
public static final String APPLICATION_JSON = "application/json";
|
||||
|
||||
public static final String JSON_CONTENT_TYPE = "application/json; charset=utf-8";
|
||||
|
||||
public static final String POSTMAN_MODE_FORMDATA ="formdata";
|
||||
|
||||
public static final String POSTMAN_MODE_RAW ="raw";
|
||||
|
|
|
@ -49,8 +49,8 @@ public class JsonBuildHelper {
|
|||
* @param counter Recursive counter
|
||||
* @return String
|
||||
*/
|
||||
private static String buildJson(String typeName, String genericCanonicalName,
|
||||
boolean isResp, int counter, Map<String, String> registryClasses, ProjectDocConfigBuilder builder) {
|
||||
public static String buildJson(String typeName, String genericCanonicalName,
|
||||
boolean isResp, int counter, Map<String, String> registryClasses, ProjectDocConfigBuilder builder) {
|
||||
if (registryClasses.containsKey(typeName) && counter > registryClasses.size()) {
|
||||
return "{\"$ref\":\"...\"}";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue