Swagger parser update: 2.0.8-OpenAPITools.org-1 (#1721)

* Update Swagger-Parser Version

* Update samples

* surpress javadoc warning

* fix TS tests

* Set version to 2.0.8-OpenAPITools.org-1
This commit is contained in:
Jérémie Bresson
2018-12-22 11:12:08 +01:00
committed by William Cheng
parent 43abd61144
commit a7dfc650b6
715 changed files with 6588 additions and 6470 deletions

View File

@@ -41,8 +41,8 @@ public interface AnotherFakeApi {
produces = { "application/json" },
consumes = { "application/json" },
method = RequestMethod.PATCH)
default Mono<ResponseEntity<Client>> call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono<Client> client, ServerWebExchange exchange) {
return getDelegate().call123testSpecialTags(client, exchange);
default Mono<ResponseEntity<Client>> call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono<Client> body, ServerWebExchange exchange) {
return getDelegate().call123testSpecialTags(body, exchange);
}
}

View File

@@ -29,7 +29,7 @@ public interface AnotherFakeApiDelegate {
/**
* @see AnotherFakeApi#call123testSpecialTags
*/
default Mono<ResponseEntity<Client>> call123testSpecialTags(Mono<Client> client,
default Mono<ResponseEntity<Client>> call123testSpecialTags(Mono<Client> body,
ServerWebExchange exchange) {
Mono<Void> result = Mono.empty();
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);

View File

@@ -60,8 +60,8 @@ public interface FakeApi {
@RequestMapping(value = "/fake/outer/composite",
produces = { "*/*" },
method = RequestMethod.POST)
default Mono<ResponseEntity<OuterComposite>> fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody Mono<OuterComposite> outerComposite, ServerWebExchange exchange) {
return getDelegate().fakeOuterCompositeSerialize(outerComposite, exchange);
default Mono<ResponseEntity<OuterComposite>> fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody Mono<OuterComposite> body, ServerWebExchange exchange) {
return getDelegate().fakeOuterCompositeSerialize(body, exchange);
}
@@ -93,8 +93,8 @@ public interface FakeApi {
@RequestMapping(value = "/fake/body-with-file-schema",
consumes = { "application/json" },
method = RequestMethod.PUT)
default Mono<ResponseEntity<Void>> testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody Mono<FileSchemaTestClass> fileSchemaTestClass, ServerWebExchange exchange) {
return getDelegate().testBodyWithFileSchema(fileSchemaTestClass, exchange);
default Mono<ResponseEntity<Void>> testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody Mono<FileSchemaTestClass> body, ServerWebExchange exchange) {
return getDelegate().testBodyWithFileSchema(body, exchange);
}
@@ -104,8 +104,8 @@ public interface FakeApi {
@RequestMapping(value = "/fake/body-with-query-params",
consumes = { "application/json" },
method = RequestMethod.PUT)
default Mono<ResponseEntity<Void>> testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody Mono<User> user, ServerWebExchange exchange) {
return getDelegate().testBodyWithQueryParams(query, user, exchange);
default Mono<ResponseEntity<Void>> testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody Mono<User> body, ServerWebExchange exchange) {
return getDelegate().testBodyWithQueryParams(query, body, exchange);
}
@@ -116,8 +116,8 @@ public interface FakeApi {
produces = { "application/json" },
consumes = { "application/json" },
method = RequestMethod.PATCH)
default Mono<ResponseEntity<Client>> testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono<Client> client, ServerWebExchange exchange) {
return getDelegate().testClientModel(client, exchange);
default Mono<ResponseEntity<Client>> testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono<Client> body, ServerWebExchange exchange) {
return getDelegate().testClientModel(body, exchange);
}
@@ -163,8 +163,8 @@ public interface FakeApi {
@RequestMapping(value = "/fake/inline-additionalProperties",
consumes = { "application/json" },
method = RequestMethod.POST)
default Mono<ResponseEntity<Void>> testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Mono<String> requestBody, ServerWebExchange exchange) {
return getDelegate().testInlineAdditionalProperties(requestBody, exchange);
default Mono<ResponseEntity<Void>> testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Mono<String> param, ServerWebExchange exchange) {
return getDelegate().testInlineAdditionalProperties(param, exchange);
}

View File

@@ -49,7 +49,7 @@ public interface FakeApiDelegate {
/**
* @see FakeApi#fakeOuterCompositeSerialize
*/
default Mono<ResponseEntity<OuterComposite>> fakeOuterCompositeSerialize(Mono<OuterComposite> outerComposite,
default Mono<ResponseEntity<OuterComposite>> fakeOuterCompositeSerialize(Mono<OuterComposite> body,
ServerWebExchange exchange) {
Mono<Void> result = Mono.empty();
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
@@ -88,7 +88,7 @@ public interface FakeApiDelegate {
/**
* @see FakeApi#testBodyWithFileSchema
*/
default Mono<ResponseEntity<Void>> testBodyWithFileSchema(Mono<FileSchemaTestClass> fileSchemaTestClass,
default Mono<ResponseEntity<Void>> testBodyWithFileSchema(Mono<FileSchemaTestClass> body,
ServerWebExchange exchange) {
Mono<Void> result = Mono.empty();
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
@@ -100,7 +100,7 @@ public interface FakeApiDelegate {
* @see FakeApi#testBodyWithQueryParams
*/
default Mono<ResponseEntity<Void>> testBodyWithQueryParams(String query,
Mono<User> user,
Mono<User> body,
ServerWebExchange exchange) {
Mono<Void> result = Mono.empty();
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
@@ -111,7 +111,7 @@ public interface FakeApiDelegate {
/**
* @see FakeApi#testClientModel
*/
default Mono<ResponseEntity<Client>> testClientModel(Mono<Client> client,
default Mono<ResponseEntity<Client>> testClientModel(Mono<Client> body,
ServerWebExchange exchange) {
Mono<Void> result = Mono.empty();
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
@@ -186,7 +186,7 @@ public interface FakeApiDelegate {
/**
* @see FakeApi#testInlineAdditionalProperties
*/
default Mono<ResponseEntity<Void>> testInlineAdditionalProperties(Mono<String> requestBody,
default Mono<ResponseEntity<Void>> testInlineAdditionalProperties(Mono<String> param,
ServerWebExchange exchange) {
Mono<Void> result = Mono.empty();
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);

View File

@@ -43,8 +43,8 @@ public interface FakeClassnameTestApi {
produces = { "application/json" },
consumes = { "application/json" },
method = RequestMethod.PATCH)
default Mono<ResponseEntity<Client>> testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono<Client> client, ServerWebExchange exchange) {
return getDelegate().testClassname(client, exchange);
default Mono<ResponseEntity<Client>> testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono<Client> body, ServerWebExchange exchange) {
return getDelegate().testClassname(body, exchange);
}
}

View File

@@ -29,7 +29,7 @@ public interface FakeClassnameTestApiDelegate {
/**
* @see FakeClassnameTestApi#testClassname
*/
default Mono<ResponseEntity<Client>> testClassname(Mono<Client> client,
default Mono<ResponseEntity<Client>> testClassname(Mono<Client> body,
ServerWebExchange exchange) {
Mono<Void> result = Mono.empty();
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);

View File

@@ -47,8 +47,8 @@ public interface PetApi {
@RequestMapping(value = "/pet",
consumes = { "application/json", "application/xml" },
method = RequestMethod.POST)
default Mono<ResponseEntity<Void>> addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Mono<Pet> pet, ServerWebExchange exchange) {
return getDelegate().addPet(pet, exchange);
default Mono<ResponseEntity<Void>> addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Mono<Pet> body, ServerWebExchange exchange) {
return getDelegate().addPet(body, exchange);
}
@@ -129,8 +129,8 @@ public interface PetApi {
@RequestMapping(value = "/pet",
consumes = { "application/json", "application/xml" },
method = RequestMethod.PUT)
default Mono<ResponseEntity<Void>> updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Mono<Pet> pet, ServerWebExchange exchange) {
return getDelegate().updatePet(pet, exchange);
default Mono<ResponseEntity<Void>> updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Mono<Pet> body, ServerWebExchange exchange) {
return getDelegate().updatePet(body, exchange);
}

View File

@@ -31,7 +31,7 @@ public interface PetApiDelegate {
/**
* @see PetApi#addPet
*/
default Mono<ResponseEntity<Void>> addPet(Mono<Pet> pet,
default Mono<ResponseEntity<Void>> addPet(Mono<Pet> body,
ServerWebExchange exchange) {
Mono<Void> result = Mono.empty();
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
@@ -117,7 +117,7 @@ public interface PetApiDelegate {
/**
* @see PetApi#updatePet
*/
default Mono<ResponseEntity<Void>> updatePet(Mono<Pet> pet,
default Mono<ResponseEntity<Void>> updatePet(Mono<Pet> body,
ServerWebExchange exchange) {
Mono<Void> result = Mono.empty();
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);

View File

@@ -79,8 +79,8 @@ public interface StoreApi {
@RequestMapping(value = "/store/order",
produces = { "application/xml", "application/json" },
method = RequestMethod.POST)
default Mono<ResponseEntity<Order>> placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Mono<Order> order, ServerWebExchange exchange) {
return getDelegate().placeOrder(order, exchange);
default Mono<ResponseEntity<Order>> placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Mono<Order> body, ServerWebExchange exchange) {
return getDelegate().placeOrder(body, exchange);
}
}

View File

@@ -72,7 +72,7 @@ public interface StoreApiDelegate {
/**
* @see StoreApi#placeOrder
*/
default Mono<ResponseEntity<Order>> placeOrder(Mono<Order> order,
default Mono<ResponseEntity<Order>> placeOrder(Mono<Order> body,
ServerWebExchange exchange) {
Mono<Void> result = Mono.empty();
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);

View File

@@ -40,8 +40,8 @@ public interface UserApi {
@ApiResponse(code = 200, message = "successful operation") })
@RequestMapping(value = "/user",
method = RequestMethod.POST)
default Mono<ResponseEntity<Void>> createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody Mono<User> user, ServerWebExchange exchange) {
return getDelegate().createUser(user, exchange);
default Mono<ResponseEntity<Void>> createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody Mono<User> body, ServerWebExchange exchange) {
return getDelegate().createUser(body, exchange);
}
@@ -50,8 +50,8 @@ public interface UserApi {
@ApiResponse(code = 200, message = "successful operation") })
@RequestMapping(value = "/user/createWithArray",
method = RequestMethod.POST)
default Mono<ResponseEntity<Void>> createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody Flux<List> user, ServerWebExchange exchange) {
return getDelegate().createUsersWithArrayInput(user, exchange);
default Mono<ResponseEntity<Void>> createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody Flux<List> body, ServerWebExchange exchange) {
return getDelegate().createUsersWithArrayInput(body, exchange);
}
@@ -60,8 +60,8 @@ public interface UserApi {
@ApiResponse(code = 200, message = "successful operation") })
@RequestMapping(value = "/user/createWithList",
method = RequestMethod.POST)
default Mono<ResponseEntity<Void>> createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody Flux<List> user, ServerWebExchange exchange) {
return getDelegate().createUsersWithListInput(user, exchange);
default Mono<ResponseEntity<Void>> createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody Flux<List> body, ServerWebExchange exchange) {
return getDelegate().createUsersWithListInput(body, exchange);
}
@@ -117,8 +117,8 @@ public interface UserApi {
@ApiResponse(code = 404, message = "User not found") })
@RequestMapping(value = "/user/{username}",
method = RequestMethod.PUT)
default Mono<ResponseEntity<Void>> updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody Mono<User> user, ServerWebExchange exchange) {
return getDelegate().updateUser(username, user, exchange);
default Mono<ResponseEntity<Void>> updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody Mono<User> body, ServerWebExchange exchange) {
return getDelegate().updateUser(username, body, exchange);
}
}

View File

@@ -30,7 +30,7 @@ public interface UserApiDelegate {
/**
* @see UserApi#createUser
*/
default Mono<ResponseEntity<Void>> createUser(Mono<User> user,
default Mono<ResponseEntity<Void>> createUser(Mono<User> body,
ServerWebExchange exchange) {
Mono<Void> result = Mono.empty();
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
@@ -41,7 +41,7 @@ public interface UserApiDelegate {
/**
* @see UserApi#createUsersWithArrayInput
*/
default Mono<ResponseEntity<Void>> createUsersWithArrayInput(Flux<List> user,
default Mono<ResponseEntity<Void>> createUsersWithArrayInput(Flux<List> body,
ServerWebExchange exchange) {
Mono<Void> result = Mono.empty();
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
@@ -52,7 +52,7 @@ public interface UserApiDelegate {
/**
* @see UserApi#createUsersWithListInput
*/
default Mono<ResponseEntity<Void>> createUsersWithListInput(Flux<List> user,
default Mono<ResponseEntity<Void>> createUsersWithListInput(Flux<List> body,
ServerWebExchange exchange) {
Mono<Void> result = Mono.empty();
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
@@ -118,7 +118,7 @@ public interface UserApiDelegate {
* @see UserApi#updateUser
*/
default Mono<ResponseEntity<Void>> updateUser(String username,
Mono<User> user,
Mono<User> body,
ServerWebExchange exchange) {
Mono<Void> result = Mono.empty();
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);

View File

@@ -42,6 +42,7 @@ paths:
summary: Add a new pet to the store
tags:
- pet
x-codegen-request-body-name: body
x-contentType: application/json
x-accepts: application/json
x-tags:
@@ -75,6 +76,7 @@ paths:
summary: Update an existing pet
tags:
- pet
x-codegen-request-body-name: body
x-contentType: application/json
x-accepts: application/json
x-tags:
@@ -358,6 +360,7 @@ paths:
summary: Place an order for a pet
tags:
- store
x-codegen-request-body-name: body
x-contentType: '*/*'
x-accepts: application/json
x-tags:
@@ -439,6 +442,7 @@ paths:
summary: Create user
tags:
- user
x-codegen-request-body-name: body
x-contentType: '*/*'
x-accepts: application/json
x-tags:
@@ -462,6 +466,7 @@ paths:
summary: Creates list of users with given input array
tags:
- user
x-codegen-request-body-name: body
x-contentType: '*/*'
x-accepts: application/json
x-tags:
@@ -485,6 +490,7 @@ paths:
summary: Creates list of users with given input array
tags:
- user
x-codegen-request-body-name: body
x-contentType: '*/*'
x-accepts: application/json
x-tags:
@@ -630,6 +636,7 @@ paths:
summary: Updated user
tags:
- user
x-codegen-request-body-name: body
x-contentType: '*/*'
x-accepts: application/json
x-tags:
@@ -657,6 +664,7 @@ paths:
summary: To test class name in snake case
tags:
- fake_classname_tags 123#$%^
x-codegen-request-body-name: body
x-contentType: application/json
x-accepts: application/json
x-tags:
@@ -836,6 +844,7 @@ paths:
summary: To test "client" model
tags:
- fake
x-codegen-request-body-name: body
x-contentType: application/json
x-accepts: application/json
x-tags:
@@ -962,6 +971,7 @@ paths:
description: Output number
tags:
- fake
x-codegen-request-body-name: body
x-contentType: '*/*'
x-accepts: '*/*'
x-tags:
@@ -986,6 +996,7 @@ paths:
description: Output string
tags:
- fake
x-codegen-request-body-name: body
x-contentType: '*/*'
x-accepts: '*/*'
x-tags:
@@ -1010,6 +1021,7 @@ paths:
description: Output boolean
tags:
- fake
x-codegen-request-body-name: body
x-contentType: '*/*'
x-accepts: '*/*'
x-tags:
@@ -1034,6 +1046,7 @@ paths:
description: Output composite
tags:
- fake
x-codegen-request-body-name: body
x-contentType: '*/*'
x-accepts: '*/*'
x-tags:
@@ -1086,6 +1099,7 @@ paths:
summary: test inline additionalProperties
tags:
- fake
x-codegen-request-body-name: param
x-contentType: application/json
x-accepts: application/json
x-tags:
@@ -1111,6 +1125,7 @@ paths:
description: Success
tags:
- fake
x-codegen-request-body-name: body
x-contentType: application/json
x-accepts: application/json
x-tags:
@@ -1136,6 +1151,7 @@ paths:
summary: To test special tags
tags:
- $another-fake?
x-codegen-request-body-name: body
x-contentType: application/json
x-accepts: application/json
x-tags:
@@ -1156,6 +1172,7 @@ paths:
description: Success
tags:
- fake
x-codegen-request-body-name: body
x-contentType: application/json
x-accepts: application/json
x-tags: