Skip to content

Commit

Permalink
Swagger parser update: 2.0.8-OpenAPITools.org-1 (OpenAPITools#1721)
Browse files Browse the repository at this point in the history
* Update Swagger-Parser Version

* Update samples

* surpress javadoc warning

* fix TS tests

* Set version to 2.0.8-OpenAPITools.org-1
  • Loading branch information
jmini authored and wing328 committed Dec 22, 2018
1 parent d579efa commit d010223
Show file tree
Hide file tree
Showing 715 changed files with 6,588 additions and 6,470 deletions.
2 changes: 1 addition & 1 deletion modules/openapi-generator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
<version>${swagger-core-version}</version>
</dependency>
<dependency>
<groupId>io.swagger.parser.v3</groupId>
<groupId>${swagger-parser-groupid}</groupId>
<artifactId>swagger-parser</artifactId>
<version>${swagger-parser-version}</version>
</dependency>
Expand Down
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,8 @@
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<swagger-parser-version>2.0.7</swagger-parser-version>
<swagger-parser-groupid>org.openapitools.swagger.parser</swagger-parser-groupid>
<swagger-parser-version>2.0.8-OpenAPITools.org-1</swagger-parser-version>
<swagger-core-version>2.0.6</swagger-core-version>
<scala-version>2.11.1</scala-version>
<felix-version>3.3.1</felix-version>
Expand Down
4 changes: 2 additions & 2 deletions samples/client/petstore/csharp/OpenAPIClient/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ namespace Example
{

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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
Expand All @@ -51,7 +51,7 @@ namespace Example

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
**body** | [**ModelClient**](ModelClient.md)| client model |

### Return type

Expand Down
40 changes: 20 additions & 20 deletions samples/client/petstore/csharp/OpenAPIClient/docs/FakeApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ No authorization required

<a name="fakeoutercompositeserialize"></a>
# **FakeOuterCompositeSerialize**
> OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null)
> OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null)


Expand All @@ -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)
Expand All @@ -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

Expand Down Expand Up @@ -260,7 +260,7 @@ No authorization required

<a name="testbodywithfileschema"></a>
# **TestBodyWithFileSchema**
> void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass)
> void TestBodyWithFileSchema (FileSchemaTestClass body)


Expand All @@ -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)
{
Expand All @@ -300,7 +300,7 @@ namespace Example

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
**body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |

### Return type

Expand All @@ -319,7 +319,7 @@ No authorization required

<a name="testbodywithqueryparams"></a>
# **TestBodyWithQueryParams**
> void TestBodyWithQueryParams (string query, User user)
> void TestBodyWithQueryParams (string query, User body)


Expand All @@ -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)
{
Expand All @@ -359,7 +359,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**query** | **string**| |
**user** | [**User**](User.md)| |
**body** | [**User**](User.md)| |

### Return type

Expand All @@ -378,7 +378,7 @@ No authorization required

<a name="testclientmodel"></a>
# **TestClientModel**
> ModelClient TestClientModel (ModelClient modelClient)
> ModelClient TestClientModel (ModelClient body)
To test \"client\" model

Expand All @@ -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)
Expand All @@ -420,7 +420,7 @@ namespace Example

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
**body** | [**ModelClient**](ModelClient.md)| client model |

### Return type

Expand Down Expand Up @@ -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

Expand All @@ -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)
{
Expand All @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
Expand All @@ -56,7 +56,7 @@ namespace Example

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
**body** | [**ModelClient**](ModelClient.md)| client model |

### Return type

Expand Down
16 changes: 8 additions & 8 deletions samples/client/petstore/csharp/OpenAPIClient/docs/PetApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
{
Expand All @@ -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

Expand Down Expand Up @@ -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

Expand All @@ -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)
{
Expand All @@ -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

Expand Down
8 changes: 4 additions & 4 deletions samples/client/petstore/csharp/OpenAPIClient/docs/StoreApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
Expand All @@ -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

Expand Down
Loading

0 comments on commit d010223

Please sign in to comment.