This commit is contained in:
oppofind 2019-12-23 09:29:35 +08:00
parent 7084690296
commit 59ba99a3ba
2 changed files with 6 additions and 2 deletions

View File

@ -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";

View File

@ -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\":\"...\"}";
}