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

@@ -18,7 +18,7 @@ public interface AnotherFakeApi extends ApiClient.Api {
/**
* To test special tags
* To test special tags and operation ID starting with number
* @param client client model (required)
* @param body client model (required)
* @return Client
*/
@RequestLine("PATCH /another-fake/dummy")
@@ -26,5 +26,5 @@ public interface AnotherFakeApi extends ApiClient.Api {
"Content-Type: application/json",
"Accept: application/json",
})
Client call123testSpecialTags(Client client);
Client call123testSpecialTags(Client body);
}

View File

@@ -38,7 +38,7 @@ public interface FakeApi extends ApiClient.Api {
/**
*
* Test serialization of object with outer number type
* @param outerComposite Input composite as post body (optional)
* @param body Input composite as post body (optional)
* @return OuterComposite
*/
@RequestLine("POST /fake/outer/composite")
@@ -46,7 +46,7 @@ public interface FakeApi extends ApiClient.Api {
"Content-Type: */*",
"Accept: */*",
})
OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite);
OuterComposite fakeOuterCompositeSerialize(OuterComposite body);
/**
*
@@ -77,27 +77,27 @@ public interface FakeApi extends ApiClient.Api {
/**
*
* For this test, the body for this request much reference a schema named `File`.
* @param fileSchemaTestClass (required)
* @param body (required)
*/
@RequestLine("PUT /fake/body-with-file-schema")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass);
void testBodyWithFileSchema(FileSchemaTestClass body);
/**
*
*
* @param query (required)
* @param user (required)
* @param body (required)
*/
@RequestLine("PUT /fake/body-with-query-params?query={query}")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
void testBodyWithQueryParams(@Param("query") String query, User user);
void testBodyWithQueryParams(@Param("query") String query, User body);
/**
*
@@ -107,7 +107,7 @@ public interface FakeApi extends ApiClient.Api {
* is convenient for services with optional query parameters, especially when
* used with the {@link TestBodyWithQueryParamsQueryParams} class that allows for
* building up this map in a fluent style.
* @param user (required)
* @param body (required)
* @param queryParams Map of query parameters as name-value pairs
* <p>The following elements may be specified in the query map:</p>
* <ul>
@@ -119,7 +119,7 @@ public interface FakeApi extends ApiClient.Api {
"Content-Type: application/json",
"Accept: application/json",
})
void testBodyWithQueryParams(User user, @QueryMap(encoded=true) Map<String, Object> queryParams);
void testBodyWithQueryParams(User body, @QueryMap(encoded=true) Map<String, Object> queryParams);
/**
* A convenience class for generating query parameters for the
@@ -135,7 +135,7 @@ public interface FakeApi extends ApiClient.Api {
/**
* To test \&quot;client\&quot; model
* To test \&quot;client\&quot; model
* @param client client model (required)
* @param body client model (required)
* @return Client
*/
@RequestLine("PATCH /fake")
@@ -143,7 +143,7 @@ public interface FakeApi extends ApiClient.Api {
"Content-Type: application/json",
"Accept: application/json",
})
Client testClientModel(Client client);
Client testClientModel(Client body);
/**
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
@@ -319,14 +319,14 @@ public interface FakeApi extends ApiClient.Api {
/**
* test inline additionalProperties
*
* @param requestBody request body (required)
* @param param request body (required)
*/
@RequestLine("POST /fake/inline-additionalProperties")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
void testInlineAdditionalProperties(Map<String, String> requestBody);
void testInlineAdditionalProperties(Map<String, String> param);
/**
* test json serialization of form data

View File

@@ -18,7 +18,7 @@ public interface FakeClassnameTags123Api extends ApiClient.Api {
/**
* To test class name in snake case
* To test class name in snake case
* @param client client model (required)
* @param body client model (required)
* @return Client
*/
@RequestLine("PATCH /fake_classname_test")
@@ -26,5 +26,5 @@ public interface FakeClassnameTags123Api extends ApiClient.Api {
"Content-Type: application/json",
"Accept: application/json",
})
Client testClassname(Client client);
Client testClassname(Client body);
}

View File

@@ -20,14 +20,14 @@ public interface PetApi extends ApiClient.Api {
/**
* Add a new pet to the store
*
* @param pet Pet object that needs to be added to the store (required)
* @param body Pet object that needs to be added to the store (required)
*/
@RequestLine("POST /pet")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
void addPet(Pet pet);
void addPet(Pet body);
/**
* Deletes a pet
@@ -145,14 +145,14 @@ public interface PetApi extends ApiClient.Api {
/**
* Update an existing pet
*
* @param pet Pet object that needs to be added to the store (required)
* @param body Pet object that needs to be added to the store (required)
*/
@RequestLine("PUT /pet")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
void updatePet(Pet pet);
void updatePet(Pet body);
/**
* Updates a pet in the store with form data

View File

@@ -52,7 +52,7 @@ public interface StoreApi extends ApiClient.Api {
/**
* Place an order for a pet
*
* @param order order placed for purchasing the pet (required)
* @param body order placed for purchasing the pet (required)
* @return Order
*/
@RequestLine("POST /store/order")
@@ -60,5 +60,5 @@ public interface StoreApi extends ApiClient.Api {
"Content-Type: */*",
"Accept: application/json",
})
Order placeOrder(Order order);
Order placeOrder(Order body);
}

View File

@@ -18,38 +18,38 @@ public interface UserApi extends ApiClient.Api {
/**
* Create user
* This can only be done by the logged in user.
* @param user Created user object (required)
* @param body Created user object (required)
*/
@RequestLine("POST /user")
@Headers({
"Content-Type: */*",
"Accept: application/json",
})
void createUser(User user);
void createUser(User body);
/**
* Creates list of users with given input array
*
* @param user List of user object (required)
* @param body List of user object (required)
*/
@RequestLine("POST /user/createWithArray")
@Headers({
"Content-Type: */*",
"Accept: application/json",
})
void createUsersWithArrayInput(List<User> user);
void createUsersWithArrayInput(List<User> body);
/**
* Creates list of users with given input array
*
* @param user List of user object (required)
* @param body List of user object (required)
*/
@RequestLine("POST /user/createWithList")
@Headers({
"Content-Type: */*",
"Accept: application/json",
})
void createUsersWithListInput(List<User> user);
void createUsersWithListInput(List<User> body);
/**
* Delete user
@@ -138,12 +138,12 @@ public interface UserApi extends ApiClient.Api {
* Updated user
* This can only be done by the logged in user.
* @param username name that need to be deleted (required)
* @param user Updated user object (required)
* @param body Updated user object (required)
*/
@RequestLine("PUT /user/{username}")
@Headers({
"Content-Type: */*",
"Accept: application/json",
})
void updateUser(@Param("username") String username, User user);
void updateUser(@Param("username") String username, User body);
}