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

@@ -8,7 +8,7 @@ Method | HTTP request | Description
# **call123TestSpecialTags**
> \OpenAPI\Client\Model\Client call123TestSpecialTags($client)
> \OpenAPI\Client\Model\Client call123TestSpecialTags($body)
To test special tags
@@ -24,10 +24,10 @@ $apiInstance = new OpenAPI\Client\Api\AnotherFakeApi(
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$client = new \OpenAPI\Client\Model\Client(); // \OpenAPI\Client\Model\Client | client model
$body = new \OpenAPI\Client\Model\Client(); // \OpenAPI\Client\Model\Client | client model
try {
$result = $apiInstance->call123TestSpecialTags($client);
$result = $apiInstance->call123TestSpecialTags($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AnotherFakeApi->call123TestSpecialTags: ', $e->getMessage(), PHP_EOL;
@@ -39,7 +39,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**client** | [**\OpenAPI\Client\Model\Client**](../Model/Client.md)| client model |
**body** | [**\OpenAPI\Client\Model\Client**](../Model/Client.md)| client model |
### Return type

View File

@@ -68,7 +68,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
# **fakeOuterCompositeSerialize**
> \OpenAPI\Client\Model\OuterComposite fakeOuterCompositeSerialize($outer_composite)
> \OpenAPI\Client\Model\OuterComposite fakeOuterCompositeSerialize($body)
@@ -84,10 +84,10 @@ $apiInstance = new OpenAPI\Client\Api\FakeApi(
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$outer_composite = new \OpenAPI\Client\Model\OuterComposite(); // \OpenAPI\Client\Model\OuterComposite | Input composite as post body
$body = new \OpenAPI\Client\Model\OuterComposite(); // \OpenAPI\Client\Model\OuterComposite | Input composite as post body
try {
$result = $apiInstance->fakeOuterCompositeSerialize($outer_composite);
$result = $apiInstance->fakeOuterCompositeSerialize($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling FakeApi->fakeOuterCompositeSerialize: ', $e->getMessage(), PHP_EOL;
@@ -99,7 +99,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**outer_composite** | [**\OpenAPI\Client\Model\OuterComposite**](../Model/OuterComposite.md)| Input composite as post body | [optional]
**body** | [**\OpenAPI\Client\Model\OuterComposite**](../Model/OuterComposite.md)| Input composite as post body | [optional]
### Return type
@@ -215,7 +215,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
# **testBodyWithFileSchema**
> testBodyWithFileSchema($file_schema_test_class)
> testBodyWithFileSchema($body)
@@ -231,10 +231,10 @@ $apiInstance = new OpenAPI\Client\Api\FakeApi(
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$file_schema_test_class = new \OpenAPI\Client\Model\FileSchemaTestClass(); // \OpenAPI\Client\Model\FileSchemaTestClass |
$body = new \OpenAPI\Client\Model\FileSchemaTestClass(); // \OpenAPI\Client\Model\FileSchemaTestClass |
try {
$apiInstance->testBodyWithFileSchema($file_schema_test_class);
$apiInstance->testBodyWithFileSchema($body);
} catch (Exception $e) {
echo 'Exception when calling FakeApi->testBodyWithFileSchema: ', $e->getMessage(), PHP_EOL;
}
@@ -245,7 +245,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**file_schema_test_class** | [**\OpenAPI\Client\Model\FileSchemaTestClass**](../Model/FileSchemaTestClass.md)| |
**body** | [**\OpenAPI\Client\Model\FileSchemaTestClass**](../Model/FileSchemaTestClass.md)| |
### Return type
@@ -263,7 +263,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
# **testBodyWithQueryParams**
> testBodyWithQueryParams($query, $user)
> testBodyWithQueryParams($query, $body)
@@ -278,10 +278,10 @@ $apiInstance = new OpenAPI\Client\Api\FakeApi(
new GuzzleHttp\Client()
);
$query = 'query_example'; // string |
$user = new \OpenAPI\Client\Model\User(); // \OpenAPI\Client\Model\User |
$body = new \OpenAPI\Client\Model\User(); // \OpenAPI\Client\Model\User |
try {
$apiInstance->testBodyWithQueryParams($query, $user);
$apiInstance->testBodyWithQueryParams($query, $body);
} catch (Exception $e) {
echo 'Exception when calling FakeApi->testBodyWithQueryParams: ', $e->getMessage(), PHP_EOL;
}
@@ -293,7 +293,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**query** | **string**| |
**user** | [**\OpenAPI\Client\Model\User**](../Model/User.md)| |
**body** | [**\OpenAPI\Client\Model\User**](../Model/User.md)| |
### Return type
@@ -311,7 +311,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
# **testClientModel**
> \OpenAPI\Client\Model\Client testClientModel($client)
> \OpenAPI\Client\Model\Client testClientModel($body)
To test \"client\" model
@@ -327,10 +327,10 @@ $apiInstance = new OpenAPI\Client\Api\FakeApi(
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$client = new \OpenAPI\Client\Model\Client(); // \OpenAPI\Client\Model\Client | client model
$body = new \OpenAPI\Client\Model\Client(); // \OpenAPI\Client\Model\Client | client model
try {
$result = $apiInstance->testClientModel($client);
$result = $apiInstance->testClientModel($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling FakeApi->testClientModel: ', $e->getMessage(), PHP_EOL;
@@ -342,7 +342,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**client** | [**\OpenAPI\Client\Model\Client**](../Model/Client.md)| client model |
**body** | [**\OpenAPI\Client\Model\Client**](../Model/Client.md)| client model |
### Return type
@@ -562,7 +562,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
# **testInlineAdditionalProperties**
> testInlineAdditionalProperties($request_body)
> testInlineAdditionalProperties($param)
test inline additionalProperties
@@ -576,10 +576,10 @@ $apiInstance = new OpenAPI\Client\Api\FakeApi(
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$request_body = array('key' => 'request_body_example'); // map[string,string] | request body
$param = array('key' => 'param_example'); // map[string,string] | request body
try {
$apiInstance->testInlineAdditionalProperties($request_body);
$apiInstance->testInlineAdditionalProperties($param);
} catch (Exception $e) {
echo 'Exception when calling FakeApi->testInlineAdditionalProperties: ', $e->getMessage(), PHP_EOL;
}
@@ -590,7 +590,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**request_body** | [**map[string,string]**](../Model/string.md)| request body |
**param** | [**map[string,string]**](../Model/string.md)| request body |
### Return type

View File

@@ -8,7 +8,7 @@ Method | HTTP request | Description
# **testClassname**
> \OpenAPI\Client\Model\Client testClassname($client)
> \OpenAPI\Client\Model\Client testClassname($body)
To test class name in snake case
@@ -30,10 +30,10 @@ $apiInstance = new OpenAPI\Client\Api\FakeClassnameTags123Api(
new GuzzleHttp\Client(),
$config
);
$client = new \OpenAPI\Client\Model\Client(); // \OpenAPI\Client\Model\Client | client model
$body = new \OpenAPI\Client\Model\Client(); // \OpenAPI\Client\Model\Client | client model
try {
$result = $apiInstance->testClassname($client);
$result = $apiInstance->testClassname($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling FakeClassnameTags123Api->testClassname: ', $e->getMessage(), PHP_EOL;
@@ -45,7 +45,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**client** | [**\OpenAPI\Client\Model\Client**](../Model/Client.md)| client model |
**body** | [**\OpenAPI\Client\Model\Client**](../Model/Client.md)| client model |
### Return type

View File

@@ -16,7 +16,7 @@ Method | HTTP request | Description
# **addPet**
> addPet($pet)
> addPet($body)
Add a new pet to the store
@@ -34,10 +34,10 @@ $apiInstance = new OpenAPI\Client\Api\PetApi(
new GuzzleHttp\Client(),
$config
);
$pet = new \OpenAPI\Client\Model\Pet(); // \OpenAPI\Client\Model\Pet | Pet object that needs to be added to the store
$body = new \OpenAPI\Client\Model\Pet(); // \OpenAPI\Client\Model\Pet | Pet object that needs to be added to the store
try {
$apiInstance->addPet($pet);
$apiInstance->addPet($body);
} catch (Exception $e) {
echo 'Exception when calling PetApi->addPet: ', $e->getMessage(), PHP_EOL;
}
@@ -48,7 +48,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pet** | [**\OpenAPI\Client\Model\Pet**](../Model/Pet.md)| Pet object that needs to be added to the store |
**body** | [**\OpenAPI\Client\Model\Pet**](../Model/Pet.md)| Pet object that needs to be added to the store |
### Return type
@@ -279,7 +279,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
# **updatePet**
> updatePet($pet)
> updatePet($body)
Update an existing pet
@@ -297,10 +297,10 @@ $apiInstance = new OpenAPI\Client\Api\PetApi(
new GuzzleHttp\Client(),
$config
);
$pet = new \OpenAPI\Client\Model\Pet(); // \OpenAPI\Client\Model\Pet | Pet object that needs to be added to the store
$body = new \OpenAPI\Client\Model\Pet(); // \OpenAPI\Client\Model\Pet | Pet object that needs to be added to the store
try {
$apiInstance->updatePet($pet);
$apiInstance->updatePet($body);
} catch (Exception $e) {
echo 'Exception when calling PetApi->updatePet: ', $e->getMessage(), PHP_EOL;
}
@@ -311,7 +311,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pet** | [**\OpenAPI\Client\Model\Pet**](../Model/Pet.md)| Pet object that needs to be added to the store |
**body** | [**\OpenAPI\Client\Model\Pet**](../Model/Pet.md)| Pet object that needs to be added to the store |
### Return type

View File

@@ -159,7 +159,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
# **placeOrder**
> \OpenAPI\Client\Model\Order placeOrder($order)
> \OpenAPI\Client\Model\Order placeOrder($body)
Place an order for a pet
@@ -173,10 +173,10 @@ $apiInstance = new OpenAPI\Client\Api\StoreApi(
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$order = new \OpenAPI\Client\Model\Order(); // \OpenAPI\Client\Model\Order | order placed for purchasing the pet
$body = new \OpenAPI\Client\Model\Order(); // \OpenAPI\Client\Model\Order | order placed for purchasing the pet
try {
$result = $apiInstance->placeOrder($order);
$result = $apiInstance->placeOrder($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling StoreApi->placeOrder: ', $e->getMessage(), PHP_EOL;
@@ -188,7 +188,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**order** | [**\OpenAPI\Client\Model\Order**](../Model/Order.md)| order placed for purchasing the pet |
**body** | [**\OpenAPI\Client\Model\Order**](../Model/Order.md)| order placed for purchasing the pet |
### Return type

View File

@@ -15,7 +15,7 @@ Method | HTTP request | Description
# **createUser**
> createUser($user)
> createUser($body)
Create user
@@ -31,10 +31,10 @@ $apiInstance = new OpenAPI\Client\Api\UserApi(
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$user = new \OpenAPI\Client\Model\User(); // \OpenAPI\Client\Model\User | Created user object
$body = new \OpenAPI\Client\Model\User(); // \OpenAPI\Client\Model\User | Created user object
try {
$apiInstance->createUser($user);
$apiInstance->createUser($body);
} catch (Exception $e) {
echo 'Exception when calling UserApi->createUser: ', $e->getMessage(), PHP_EOL;
}
@@ -45,7 +45,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**user** | [**\OpenAPI\Client\Model\User**](../Model/User.md)| Created user object |
**body** | [**\OpenAPI\Client\Model\User**](../Model/User.md)| Created user object |
### Return type
@@ -63,7 +63,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
# **createUsersWithArrayInput**
> createUsersWithArrayInput($user)
> createUsersWithArrayInput($body)
Creates list of users with given input array
@@ -77,10 +77,10 @@ $apiInstance = new OpenAPI\Client\Api\UserApi(
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$user = array(new \OpenAPI\Client\Model\array()); // \OpenAPI\Client\Model\User[] | List of user object
$body = array(new \OpenAPI\Client\Model\array()); // \OpenAPI\Client\Model\User[] | List of user object
try {
$apiInstance->createUsersWithArrayInput($user);
$apiInstance->createUsersWithArrayInput($body);
} catch (Exception $e) {
echo 'Exception when calling UserApi->createUsersWithArrayInput: ', $e->getMessage(), PHP_EOL;
}
@@ -91,7 +91,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**user** | [**\OpenAPI\Client\Model\User[]**](../Model/array.md)| List of user object |
**body** | [**\OpenAPI\Client\Model\User[]**](../Model/array.md)| List of user object |
### Return type
@@ -109,7 +109,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
# **createUsersWithListInput**
> createUsersWithListInput($user)
> createUsersWithListInput($body)
Creates list of users with given input array
@@ -123,10 +123,10 @@ $apiInstance = new OpenAPI\Client\Api\UserApi(
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$user = array(new \OpenAPI\Client\Model\array()); // \OpenAPI\Client\Model\User[] | List of user object
$body = array(new \OpenAPI\Client\Model\array()); // \OpenAPI\Client\Model\User[] | List of user object
try {
$apiInstance->createUsersWithListInput($user);
$apiInstance->createUsersWithListInput($body);
} catch (Exception $e) {
echo 'Exception when calling UserApi->createUsersWithListInput: ', $e->getMessage(), PHP_EOL;
}
@@ -137,7 +137,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**user** | [**\OpenAPI\Client\Model\User[]**](../Model/array.md)| List of user object |
**body** | [**\OpenAPI\Client\Model\User[]**](../Model/array.md)| List of user object |
### Return type
@@ -341,7 +341,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
# **updateUser**
> updateUser($username, $user)
> updateUser($username, $body)
Updated user
@@ -358,10 +358,10 @@ $apiInstance = new OpenAPI\Client\Api\UserApi(
new GuzzleHttp\Client()
);
$username = 'username_example'; // string | name that need to be deleted
$user = new \OpenAPI\Client\Model\User(); // \OpenAPI\Client\Model\User | Updated user object
$body = new \OpenAPI\Client\Model\User(); // \OpenAPI\Client\Model\User | Updated user object
try {
$apiInstance->updateUser($username, $user);
$apiInstance->updateUser($username, $body);
} catch (Exception $e) {
echo 'Exception when calling UserApi->updateUser: ', $e->getMessage(), PHP_EOL;
}
@@ -373,7 +373,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **string**| name that need to be deleted |
**user** | [**\OpenAPI\Client\Model\User**](../Model/User.md)| Updated user object |
**body** | [**\OpenAPI\Client\Model\User**](../Model/User.md)| Updated user object |
### Return type