forked from loafle/openapi-generator-original
Replace ^M with new line (\r) in mustache template (#3865)
* fix jaxrs line break * fix java gradle bat line break * fix scala gradle line break * fix undertow crt line break * fix spring line break * fix undertow line break in pom * rollback undertwo petstore to use petstore.yaml
This commit is contained in:
@@ -62,7 +62,7 @@ public interface FakeApi {
|
||||
,
|
||||
|
||||
|
||||
@ApiParam(value = "None", required=true ) @RequestPart(value="string", required=true) String string
|
||||
@ApiParam(value = "None", required=true ) @RequestPart(value="patternWithoutDelimiter", required=true) String patternWithoutDelimiter
|
||||
,
|
||||
|
||||
|
||||
@@ -86,6 +86,10 @@ public interface FakeApi {
|
||||
,
|
||||
|
||||
|
||||
@ApiParam(value = "None" ) @RequestPart(value="string", required=false) String string
|
||||
,
|
||||
|
||||
|
||||
@ApiParam(value = "None" ) @RequestPart(value="binary", required=false) byte[] binary
|
||||
,
|
||||
|
||||
@@ -116,13 +120,13 @@ public interface FakeApi {
|
||||
default CompletableFuture<ResponseEntity<Void>> testEnumParameters(
|
||||
|
||||
|
||||
@ApiParam(value = "Form parameter enum test (string array)" ) @RequestPart(value="enumFormStringArray", required=false) List<String> enumFormStringArray
|
||||
@ApiParam(value = "Form parameter enum test (string array)" , allowableValues="GREATER_THAN, DOLLAR") @RequestPart(value="enumFormStringArray", required=false) List<String> enumFormStringArray
|
||||
,
|
||||
|
||||
|
||||
@ApiParam(value = "Form parameter enum test (string)" , allowableValues="_ABC, _EFG, _XYZ_", defaultValue="-efg") @RequestPart(value="enumFormString", required=false) String enumFormString
|
||||
,
|
||||
@ApiParam(value = "Header parameter enum test (string array)" ) @RequestHeader(value="enum_header_string_array", required=false) List<String> enumHeaderStringArray
|
||||
@ApiParam(value = "Header parameter enum test (string array)" , allowableValues="GREATER_THAN, DOLLAR") @RequestHeader(value="enum_header_string_array", required=false) List<String> enumHeaderStringArray
|
||||
|
||||
|
||||
,
|
||||
|
||||
@@ -22,7 +22,7 @@ public class Model200Response {
|
||||
private Integer name = null;
|
||||
|
||||
@JsonProperty("class")
|
||||
private String PropertyClass = null;
|
||||
private String propertyClass = null;
|
||||
|
||||
public Model200Response name(Integer name) {
|
||||
this.name = name;
|
||||
@@ -42,22 +42,22 @@ public class Model200Response {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Model200Response PropertyClass(String PropertyClass) {
|
||||
this.PropertyClass = PropertyClass;
|
||||
public Model200Response propertyClass(String propertyClass) {
|
||||
this.propertyClass = propertyClass;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get PropertyClass
|
||||
* @return PropertyClass
|
||||
* Get propertyClass
|
||||
* @return propertyClass
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getPropertyClass() {
|
||||
return PropertyClass;
|
||||
return propertyClass;
|
||||
}
|
||||
|
||||
public void setPropertyClass(String PropertyClass) {
|
||||
this.PropertyClass = PropertyClass;
|
||||
public void setPropertyClass(String propertyClass) {
|
||||
this.propertyClass = propertyClass;
|
||||
}
|
||||
|
||||
|
||||
@@ -71,12 +71,12 @@ public class Model200Response {
|
||||
}
|
||||
Model200Response _200Response = (Model200Response) o;
|
||||
return Objects.equals(this.name, _200Response.name) &&
|
||||
Objects.equals(this.PropertyClass, _200Response.PropertyClass);
|
||||
Objects.equals(this.propertyClass, _200Response.propertyClass);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(name, PropertyClass);
|
||||
return Objects.hash(name, propertyClass);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -85,7 +85,7 @@ public class Model200Response {
|
||||
sb.append("class Model200Response {\n");
|
||||
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" PropertyClass: ").append(toIndentedString(PropertyClass)).append("\n");
|
||||
sb.append(" propertyClass: ").append(toIndentedString(propertyClass)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
springfox.documentation.swagger.v2.path=/api-docs
|
||||
#server.port=8090
|
||||
springfox.documentation.swagger.v2.path=/api-docs
|
||||
#server.port=8090
|
||||
|
||||
Reference in New Issue
Block a user