forked from loafle/openapi-generator-original
Merge remote-tracking branch 'origin' into 4.0.x
This commit is contained in:
@@ -31,8 +31,8 @@ public interface AnotherFakeApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Client>> call123testSpecialTags(Mono<Client> client,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
for (MediaType mediaType : exchange.getRequest().getHeaders().getAccept()) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
result = ApiUtil.getExampleResponse(exchange, "{ \"client\" : \"client\"}");
|
||||
|
||||
@@ -40,8 +40,8 @@ public interface FakeApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Boolean>> fakeOuterBooleanSerialize(Mono<Boolean> body,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -51,8 +51,8 @@ public interface FakeApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<OuterComposite>> fakeOuterCompositeSerialize(Mono<OuterComposite> outerComposite,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
for (MediaType mediaType : exchange.getRequest().getHeaders().getAccept()) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
||||
result = ApiUtil.getExampleResponse(exchange, "{ \"my_string\" : \"my_string\", \"my_number\" : 0.80082819046101150206595775671303272247314453125, \"my_boolean\" : true}");
|
||||
@@ -68,8 +68,8 @@ public interface FakeApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<BigDecimal>> fakeOuterNumberSerialize(Mono<BigDecimal> body,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -79,8 +79,8 @@ public interface FakeApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<String>> fakeOuterStringSerialize(Mono<String> body,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -90,8 +90,8 @@ public interface FakeApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Void>> testBodyWithFileSchema(Mono<FileSchemaTestClass> fileSchemaTestClass,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -102,8 +102,8 @@ public interface FakeApiDelegate {
|
||||
default Mono<ResponseEntity<Void>> testBodyWithQueryParams(String query,
|
||||
Mono<User> user,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -113,8 +113,8 @@ public interface FakeApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Client>> testClientModel(Mono<Client> client,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
for (MediaType mediaType : exchange.getRequest().getHeaders().getAccept()) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
result = ApiUtil.getExampleResponse(exchange, "{ \"client\" : \"client\"}");
|
||||
@@ -143,8 +143,8 @@ public interface FakeApiDelegate {
|
||||
String password,
|
||||
String paramCallback,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -161,8 +161,8 @@ public interface FakeApiDelegate {
|
||||
List<String> enumFormStringArray,
|
||||
String enumFormString,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -177,8 +177,8 @@ public interface FakeApiDelegate {
|
||||
Boolean booleanGroup,
|
||||
Long int64Group,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -188,8 +188,8 @@ public interface FakeApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Void>> testInlineAdditionalProperties(Mono<String> requestBody,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -200,8 +200,8 @@ public interface FakeApiDelegate {
|
||||
default Mono<ResponseEntity<Void>> testJsonFormData(String param,
|
||||
String param2,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -213,8 +213,8 @@ public interface FakeApiDelegate {
|
||||
MultipartFile requiredFile,
|
||||
String additionalMetadata,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
for (MediaType mediaType : exchange.getRequest().getHeaders().getAccept()) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
result = ApiUtil.getExampleResponse(exchange, "{ \"code\" : 0, \"type\" : \"type\", \"message\" : \"message\"}");
|
||||
|
||||
@@ -31,8 +31,8 @@ public interface FakeClassnameTestApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Client>> testClassname(Mono<Client> client,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
for (MediaType mediaType : exchange.getRequest().getHeaders().getAccept()) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
result = ApiUtil.getExampleResponse(exchange, "{ \"client\" : \"client\"}");
|
||||
|
||||
@@ -33,8 +33,8 @@ public interface PetApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Void>> addPet(Mono<Pet> pet,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -45,8 +45,8 @@ public interface PetApiDelegate {
|
||||
default Mono<ResponseEntity<Void>> deletePet(Long petId,
|
||||
String apiKey,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -56,8 +56,8 @@ public interface PetApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Flux<Pet>>> findPetsByStatus(List<String> status,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
for (MediaType mediaType : exchange.getRequest().getHeaders().getAccept()) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
result = ApiUtil.getExampleResponse(exchange, "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\"}");
|
||||
@@ -77,8 +77,8 @@ public interface PetApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Flux<Pet>>> findPetsByTags(List<String> tags,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
for (MediaType mediaType : exchange.getRequest().getHeaders().getAccept()) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
result = ApiUtil.getExampleResponse(exchange, "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\"}");
|
||||
@@ -98,8 +98,8 @@ public interface PetApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Pet>> getPetById(Long petId,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
for (MediaType mediaType : exchange.getRequest().getHeaders().getAccept()) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
result = ApiUtil.getExampleResponse(exchange, "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\"}");
|
||||
@@ -119,8 +119,8 @@ public interface PetApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Void>> updatePet(Mono<Pet> pet,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -132,8 +132,8 @@ public interface PetApiDelegate {
|
||||
String name,
|
||||
String status,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -145,8 +145,8 @@ public interface PetApiDelegate {
|
||||
String additionalMetadata,
|
||||
MultipartFile file,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
for (MediaType mediaType : exchange.getRequest().getHeaders().getAccept()) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
result = ApiUtil.getExampleResponse(exchange, "{ \"code\" : 0, \"type\" : \"type\", \"message\" : \"message\"}");
|
||||
|
||||
@@ -32,8 +32,8 @@ public interface StoreApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Void>> deleteOrder(String orderId,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -42,8 +42,8 @@ public interface StoreApiDelegate {
|
||||
* @see StoreApi#getInventory
|
||||
*/
|
||||
default Mono<ResponseEntity<Map<String, Integer>>> getInventory(ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -53,8 +53,8 @@ public interface StoreApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Order>> getOrderById(Long orderId,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
for (MediaType mediaType : exchange.getRequest().getHeaders().getAccept()) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
result = ApiUtil.getExampleResponse(exchange, "{ \"petId\" : 6, \"quantity\" : 1, \"id\" : 0, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"complete\" : false, \"status\" : \"placed\"}");
|
||||
@@ -74,8 +74,8 @@ public interface StoreApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Order>> placeOrder(Mono<Order> order,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
for (MediaType mediaType : exchange.getRequest().getHeaders().getAccept()) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
result = ApiUtil.getExampleResponse(exchange, "{ \"petId\" : 6, \"quantity\" : 1, \"id\" : 0, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"complete\" : false, \"status\" : \"placed\"}");
|
||||
|
||||
@@ -32,8 +32,8 @@ public interface UserApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Void>> createUser(Mono<User> user,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -43,8 +43,8 @@ public interface UserApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Void>> createUsersWithArrayInput(Flux<List> user,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -54,8 +54,8 @@ public interface UserApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Void>> createUsersWithListInput(Flux<List> user,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -65,8 +65,8 @@ public interface UserApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Void>> deleteUser(String username,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -76,8 +76,8 @@ public interface UserApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<User>> getUserByName(String username,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
for (MediaType mediaType : exchange.getRequest().getHeaders().getAccept()) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
result = ApiUtil.getExampleResponse(exchange, "{ \"firstName\" : \"firstName\", \"lastName\" : \"lastName\", \"password\" : \"password\", \"userStatus\" : 6, \"phone\" : \"phone\", \"id\" : 0, \"email\" : \"email\", \"username\" : \"username\"}");
|
||||
@@ -98,8 +98,8 @@ public interface UserApiDelegate {
|
||||
default Mono<ResponseEntity<String>> loginUser(String username,
|
||||
String password,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -108,8 +108,8 @@ public interface UserApiDelegate {
|
||||
* @see UserApi#logoutUser
|
||||
*/
|
||||
default Mono<ResponseEntity<Void>> logoutUser(ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -120,8 +120,8 @@ public interface UserApiDelegate {
|
||||
default Mono<ResponseEntity<Void>> updateUser(String username,
|
||||
Mono<User> user,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
package org.openapitools.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import org.openapitools.model.Animal;
|
||||
import javax.validation.Valid;
|
||||
import javax.validation.constraints.*;
|
||||
|
||||
/**
|
||||
* AnimalFarm
|
||||
*/
|
||||
|
||||
public class AnimalFarm extends ArrayList<Animal> {
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(super.hashCode());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AnimalFarm {\n");
|
||||
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
package org.openapitools.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import javax.validation.Valid;
|
||||
import javax.validation.constraints.*;
|
||||
|
||||
/**
|
||||
* StringBooleanMap
|
||||
*/
|
||||
|
||||
public class StringBooleanMap extends HashMap<String, Boolean> {
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(super.hashCode());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class StringBooleanMap {\n");
|
||||
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user