-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[csharp-netcore] Better handling of oneOf/anyOf with duplicated data …
…type (#15377) * better handling of oneOf/anyOf with duplicated data type * update generichost template * remove newline in eof * bug fix (#15413) --------- Co-authored-by: devhl-labs <[email protected]>
- Loading branch information
1 parent
76c05b2
commit 7259d81
Showing
332 changed files
with
3,796 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
...store/csharp-netcore/OpenAPIClient-ConditionalSerialization/docs/OneOfString.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Org.OpenAPITools.Model.OneOfString | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
61 changes: 61 additions & 0 deletions
61
...penAPIClient-ConditionalSerialization/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/* | ||
* OpenAPI Petstore | ||
* | ||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ | ||
* | ||
* The version of the OpenAPI document: 1.0.0 | ||
* Generated by: https://github.com/openapitools/openapi-generator.git | ||
*/ | ||
|
||
|
||
using Xunit; | ||
|
||
using System; | ||
using System.Linq; | ||
using System.IO; | ||
using System.Collections.Generic; | ||
using Org.OpenAPITools.Model; | ||
using Org.OpenAPITools.Client; | ||
using System.Reflection; | ||
using Newtonsoft.Json; | ||
|
||
namespace Org.OpenAPITools.Test.Model | ||
{ | ||
/// <summary> | ||
/// Class for testing OneOfString | ||
/// </summary> | ||
/// <remarks> | ||
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). | ||
/// Please update the test case below to test the model. | ||
/// </remarks> | ||
public class OneOfStringTests : IDisposable | ||
{ | ||
// TODO uncomment below to declare an instance variable for OneOfString | ||
//private OneOfString instance; | ||
|
||
public OneOfStringTests() | ||
{ | ||
// TODO uncomment below to create an instance of OneOfString | ||
//instance = new OneOfString(); | ||
} | ||
|
||
public void Dispose() | ||
{ | ||
// Cleanup when everything is done. | ||
} | ||
|
||
/// <summary> | ||
/// Test an instance of OneOfString | ||
/// </summary> | ||
[Fact] | ||
public void OneOfStringInstanceTest() | ||
{ | ||
// TODO uncomment below to test "IsType" OneOfString | ||
//Assert.IsType<OneOfString>(instance); | ||
} | ||
|
||
|
||
|
||
} | ||
|
||
} |
Oops, something went wrong.