Fix various typos in the templates (Ruby, C#) (#1803)

* Fix typos

* update petstore samples
This commit is contained in:
William Cheng
2019-01-05 09:39:10 +08:00
committed by GitHub
parent be262384cd
commit d35f4b08d9
158 changed files with 1677 additions and 1687 deletions

View File

@@ -9,7 +9,7 @@ Method | HTTP request | Description
<a name="call123testspecialtags"></a>
# **Call123TestSpecialTags**
> ModelClient Call123TestSpecialTags (ModelClient modelClient)
> ModelClient Call123TestSpecialTags (ModelClient body)
To test special tags
@@ -30,12 +30,12 @@ namespace Example
public void main()
{
var apiInstance = new AnotherFakeApi();
var modelClient = new ModelClient(); // ModelClient | client model
var body = new ModelClient(); // ModelClient | client model
try
{
// To test special tags
ModelClient result = apiInstance.Call123TestSpecialTags(modelClient);
ModelClient result = apiInstance.Call123TestSpecialTags(body);
Debug.WriteLine(result);
}
catch (Exception e)
@@ -51,7 +51,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
**body** | [**ModelClient**](ModelClient.md)| client model |
### Return type

View File

@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**EnumStringRequired** | **string** | |
**EnumInteger** | **int?** | | [optional]
**EnumNumber** | **double?** | | [optional]
**OuterEnum** | **OuterEnum** | | [optional]
**OuterEnum** | [**OuterEnum**](OuterEnum.md) | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -80,7 +80,7 @@ No authorization required
<a name="fakeoutercompositeserialize"></a>
# **FakeOuterCompositeSerialize**
> OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null)
> OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null)
@@ -101,11 +101,11 @@ namespace Example
public void main()
{
var apiInstance = new FakeApi();
var outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body (optional)
var body = new OuterComposite(); // OuterComposite | Input composite as post body (optional)
try
{
OuterComposite result = apiInstance.FakeOuterCompositeSerialize(outerComposite);
OuterComposite result = apiInstance.FakeOuterCompositeSerialize(body);
Debug.WriteLine(result);
}
catch (Exception e)
@@ -121,7 +121,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
**body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
### Return type
@@ -260,7 +260,7 @@ No authorization required
<a name="testbodywithfileschema"></a>
# **TestBodyWithFileSchema**
> void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass)
> void TestBodyWithFileSchema (FileSchemaTestClass body)
@@ -281,11 +281,11 @@ namespace Example
public void main()
{
var apiInstance = new FakeApi();
var fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass |
var body = new FileSchemaTestClass(); // FileSchemaTestClass |
try
{
apiInstance.TestBodyWithFileSchema(fileSchemaTestClass);
apiInstance.TestBodyWithFileSchema(body);
}
catch (Exception e)
{
@@ -300,7 +300,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
**body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
### Return type
@@ -319,7 +319,7 @@ No authorization required
<a name="testbodywithqueryparams"></a>
# **TestBodyWithQueryParams**
> void TestBodyWithQueryParams (string query, User user)
> void TestBodyWithQueryParams (string query, User body)
@@ -339,11 +339,11 @@ namespace Example
{
var apiInstance = new FakeApi();
var query = query_example; // string |
var user = new User(); // User |
var body = new User(); // User |
try
{
apiInstance.TestBodyWithQueryParams(query, user);
apiInstance.TestBodyWithQueryParams(query, body);
}
catch (Exception e)
{
@@ -359,7 +359,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**query** | **string**| |
**user** | [**User**](User.md)| |
**body** | [**User**](User.md)| |
### Return type
@@ -378,7 +378,7 @@ No authorization required
<a name="testclientmodel"></a>
# **TestClientModel**
> ModelClient TestClientModel (ModelClient modelClient)
> ModelClient TestClientModel (ModelClient body)
To test \"client\" model
@@ -399,12 +399,12 @@ namespace Example
public void main()
{
var apiInstance = new FakeApi();
var modelClient = new ModelClient(); // ModelClient | client model
var body = new ModelClient(); // ModelClient | client model
try
{
// To test \"client\" model
ModelClient result = apiInstance.TestClientModel(modelClient);
ModelClient result = apiInstance.TestClientModel(body);
Debug.WriteLine(result);
}
catch (Exception e)
@@ -420,7 +420,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
**body** | [**ModelClient**](ModelClient.md)| client model |
### Return type
@@ -673,7 +673,7 @@ No authorization required
<a name="testinlineadditionalproperties"></a>
# **TestInlineAdditionalProperties**
> void TestInlineAdditionalProperties (Dictionary<string, string> requestBody)
> void TestInlineAdditionalProperties (Dictionary<string, string> param)
test inline additionalProperties
@@ -692,12 +692,12 @@ namespace Example
public void main()
{
var apiInstance = new FakeApi();
var requestBody = new Dictionary<string, string>(); // Dictionary<string, string> | request body
var param = new Dictionary<string, string>(); // Dictionary<string, string> | request body
try
{
// test inline additionalProperties
apiInstance.TestInlineAdditionalProperties(requestBody);
apiInstance.TestInlineAdditionalProperties(param);
}
catch (Exception e)
{
@@ -712,7 +712,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**requestBody** | [**Dictionary&lt;string, string&gt;**](string.md)| request body |
**param** | [**Dictionary&lt;string, string&gt;**](string.md)| request body |
### Return type

View File

@@ -9,7 +9,7 @@ Method | HTTP request | Description
<a name="testclassname"></a>
# **TestClassname**
> ModelClient TestClassname (ModelClient modelClient)
> ModelClient TestClassname (ModelClient body)
To test class name in snake case
@@ -35,12 +35,12 @@ namespace Example
// Configuration.Default.AddApiKeyPrefix("api_key_query", "Bearer");
var apiInstance = new FakeClassnameTags123Api();
var modelClient = new ModelClient(); // ModelClient | client model
var body = new ModelClient(); // ModelClient | client model
try
{
// To test class name in snake case
ModelClient result = apiInstance.TestClassname(modelClient);
ModelClient result = apiInstance.TestClassname(body);
Debug.WriteLine(result);
}
catch (Exception e)
@@ -56,7 +56,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
**body** | [**ModelClient**](ModelClient.md)| client model |
### Return type

View File

@@ -17,7 +17,7 @@ Method | HTTP request | Description
<a name="addpet"></a>
# **AddPet**
> void AddPet (Pet pet)
> void AddPet (Pet body)
Add a new pet to the store
@@ -39,12 +39,12 @@ namespace Example
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new PetApi();
var pet = new Pet(); // Pet | Pet object that needs to be added to the store
var body = new Pet(); // Pet | Pet object that needs to be added to the store
try
{
// Add a new pet to the store
apiInstance.AddPet(pet);
apiInstance.AddPet(body);
}
catch (Exception e)
{
@@ -59,7 +59,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
### Return type
@@ -335,7 +335,7 @@ Name | Type | Description | Notes
<a name="updatepet"></a>
# **UpdatePet**
> void UpdatePet (Pet pet)
> void UpdatePet (Pet body)
Update an existing pet
@@ -357,12 +357,12 @@ namespace Example
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new PetApi();
var pet = new Pet(); // Pet | Pet object that needs to be added to the store
var body = new Pet(); // Pet | Pet object that needs to be added to the store
try
{
// Update an existing pet
apiInstance.UpdatePet(pet);
apiInstance.UpdatePet(body);
}
catch (Exception e)
{
@@ -377,7 +377,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
### Return type

View File

@@ -195,7 +195,7 @@ No authorization required
<a name="placeorder"></a>
# **PlaceOrder**
> Order PlaceOrder (Order order)
> Order PlaceOrder (Order body)
Place an order for a pet
@@ -214,12 +214,12 @@ namespace Example
public void main()
{
var apiInstance = new StoreApi();
var order = new Order(); // Order | order placed for purchasing the pet
var body = new Order(); // Order | order placed for purchasing the pet
try
{
// Place an order for a pet
Order result = apiInstance.PlaceOrder(order);
Order result = apiInstance.PlaceOrder(body);
Debug.WriteLine(result);
}
catch (Exception e)
@@ -235,7 +235,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**order** | [**Order**](Order.md)| order placed for purchasing the pet |
**body** | [**Order**](Order.md)| order placed for purchasing the pet |
### Return type

View File

@@ -16,7 +16,7 @@ Method | HTTP request | Description
<a name="createuser"></a>
# **CreateUser**
> void CreateUser (User user)
> void CreateUser (User body)
Create user
@@ -37,12 +37,12 @@ namespace Example
public void main()
{
var apiInstance = new UserApi();
var user = new User(); // User | Created user object
var body = new User(); // User | Created user object
try
{
// Create user
apiInstance.CreateUser(user);
apiInstance.CreateUser(body);
}
catch (Exception e)
{
@@ -57,7 +57,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**user** | [**User**](User.md)| Created user object |
**body** | [**User**](User.md)| Created user object |
### Return type
@@ -76,7 +76,7 @@ No authorization required
<a name="createuserswitharrayinput"></a>
# **CreateUsersWithArrayInput**
> void CreateUsersWithArrayInput (List<User> user)
> void CreateUsersWithArrayInput (List<User> body)
Creates list of users with given input array
@@ -95,12 +95,12 @@ namespace Example
public void main()
{
var apiInstance = new UserApi();
var user = new List<User>(); // List<User> | List of user object
var body = new List<User>(); // List<User> | List of user object
try
{
// Creates list of users with given input array
apiInstance.CreateUsersWithArrayInput(user);
apiInstance.CreateUsersWithArrayInput(body);
}
catch (Exception e)
{
@@ -115,7 +115,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**user** | [**List&lt;User&gt;**](List.md)| List of user object |
**body** | [**List&lt;User&gt;**](List.md)| List of user object |
### Return type
@@ -134,7 +134,7 @@ No authorization required
<a name="createuserswithlistinput"></a>
# **CreateUsersWithListInput**
> void CreateUsersWithListInput (List<User> user)
> void CreateUsersWithListInput (List<User> body)
Creates list of users with given input array
@@ -153,12 +153,12 @@ namespace Example
public void main()
{
var apiInstance = new UserApi();
var user = new List<User>(); // List<User> | List of user object
var body = new List<User>(); // List<User> | List of user object
try
{
// Creates list of users with given input array
apiInstance.CreateUsersWithListInput(user);
apiInstance.CreateUsersWithListInput(body);
}
catch (Exception e)
{
@@ -173,7 +173,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**user** | [**List&lt;User&gt;**](List.md)| List of user object |
**body** | [**List&lt;User&gt;**](List.md)| List of user object |
### Return type
@@ -426,7 +426,7 @@ No authorization required
<a name="updateuser"></a>
# **UpdateUser**
> void UpdateUser (string username, User user)
> void UpdateUser (string username, User body)
Updated user
@@ -448,12 +448,12 @@ namespace Example
{
var apiInstance = new UserApi();
var username = username_example; // string | name that need to be deleted
var user = new User(); // User | Updated user object
var body = new User(); // User | Updated user object
try
{
// Updated user
apiInstance.UpdateUser(username, user);
apiInstance.UpdateUser(username, body);
}
catch (Exception e)
{
@@ -469,7 +469,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **string**| name that need to be deleted |
**user** | [**User**](User.md)| Updated user object |
**body** | [**User**](User.md)| Updated user object |
### Return type