forked from loafle/openapi-generator-original
remove reformat
This commit is contained in:
parent
6ac27fcafc
commit
90d61578d0
@ -688,7 +688,7 @@ public class DefaultCodegen {
|
|||||||
*
|
*
|
||||||
* @param name the name to be escaped
|
* @param name the name to be escaped
|
||||||
* @return the escaped reserved word
|
* @return the escaped reserved word
|
||||||
* <p>
|
*
|
||||||
* throws Runtime exception as reserved word is not allowed (default behavior)
|
* throws Runtime exception as reserved word is not allowed (default behavior)
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("static-method")
|
@SuppressWarnings("static-method")
|
||||||
@ -725,8 +725,8 @@ public class DefaultCodegen {
|
|||||||
* This method will map between Swagger type and language-specified type, as well as mapping
|
* This method will map between Swagger type and language-specified type, as well as mapping
|
||||||
* between Swagger type and the corresponding import statement for the language. This will
|
* between Swagger type and the corresponding import statement for the language. This will
|
||||||
* also add some language specified CLI options, if any.
|
* also add some language specified CLI options, if any.
|
||||||
* <p>
|
*
|
||||||
* <p>
|
*
|
||||||
* returns string presentation of the example path (it's a constructor)
|
* returns string presentation of the example path (it's a constructor)
|
||||||
*/
|
*/
|
||||||
public DefaultCodegen() {
|
public DefaultCodegen() {
|
||||||
@ -1021,7 +1021,6 @@ public class DefaultCodegen {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* returns the swagger type for the property
|
* returns the swagger type for the property
|
||||||
*
|
|
||||||
* @param p Swagger property object
|
* @param p Swagger property object
|
||||||
* @return string presentation of the type
|
* @return string presentation of the type
|
||||||
**/
|
**/
|
||||||
@ -1618,7 +1617,6 @@ public class DefaultCodegen {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Override with any special handling of response codes
|
* Override with any special handling of response codes
|
||||||
*
|
|
||||||
* @param responses Swagger Operation's responses
|
* @param responses Swagger Operation's responses
|
||||||
* @return default method response or <tt>null</tt> if not found
|
* @return default method response or <tt>null</tt> if not found
|
||||||
*/
|
*/
|
||||||
@ -2729,6 +2727,7 @@ public class DefaultCodegen {
|
|||||||
*
|
*
|
||||||
* @param templateName template name
|
* @param templateName template name
|
||||||
* @param tag tag
|
* @param tag tag
|
||||||
|
*
|
||||||
* @return the API documentation file name with full path
|
* @return the API documentation file name with full path
|
||||||
*/
|
*/
|
||||||
public String apiDocFilename(String templateName, String tag) {
|
public String apiDocFilename(String templateName, String tag) {
|
||||||
@ -2741,6 +2740,7 @@ public class DefaultCodegen {
|
|||||||
*
|
*
|
||||||
* @param templateName template name
|
* @param templateName template name
|
||||||
* @param tag tag
|
* @param tag tag
|
||||||
|
*
|
||||||
* @return the API test file name with full path
|
* @return the API test file name with full path
|
||||||
*/
|
*/
|
||||||
public String apiTestFilename(String templateName, String tag) {
|
public String apiTestFilename(String templateName, String tag) {
|
||||||
@ -2763,7 +2763,6 @@ public class DefaultCodegen {
|
|||||||
/**
|
/**
|
||||||
* All library templates supported.
|
* All library templates supported.
|
||||||
* (key: library name, value: library description)
|
* (key: library name, value: library description)
|
||||||
*
|
|
||||||
* @return the supported libraries
|
* @return the supported libraries
|
||||||
*/
|
*/
|
||||||
public Map<String, String> supportedLibraries() {
|
public Map<String, String> supportedLibraries() {
|
||||||
@ -2948,7 +2947,8 @@ public class DefaultCodegen {
|
|||||||
folder += supportingFile.folder;
|
folder += supportingFile.folder;
|
||||||
if(!"".equals(folder)) {
|
if(!"".equals(folder)) {
|
||||||
folder += File.separator + supportingFile.destinationFilename;
|
folder += File.separator + supportingFile.destinationFilename;
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
folder = supportingFile.destinationFilename;
|
folder = supportingFile.destinationFilename;
|
||||||
}
|
}
|
||||||
if(!new File(folder).exists()) {
|
if(!new File(folder).exists()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user