forked from loafle/openapi-generator-original
[csharp-netcore] Adds ability to inherit api (#13797)
* refactor nrt annotation * enable nrt by default in .net6.0+ * use shorter nrt annotation * build samples * removed debugging lines * fixed model and operatoin constructors * reverted a commented line for comparison * upgraded to System.Text.Json * build samples * build samples * deleted samples to remove old files * bug fixes * bug fixes * added cumpulsory property to codegen * build samples * fixed bug * fixed bug * fixes * removed bugged code that wasnt needed * build samples * restored sorting and default values for required params * fixed bugs in comparison * fixed sort comparators * recreate tests * build samples...again... * removed debugging line breaks * simplified constructor signature * inject json options * build samples...again... * build samples * add support for composed primitives * build samples * build all samples * avoid reserved words * restored a file * multiple fixes * bug fixes * bug fixes * api clients now transient, added EventHub * bug fix * bug fix * added ability to inherit api * added ability to inherit api * bug fix * added requiredAndNotNullable * added custom serialization * added request info to error handler * added OrDefault for enum parsing * fixed DateTime? deserialization * added support for server override * added IServiceCollection to host builder extensions * improve cookie support * bug fixes * fixed spacing * fixed content type header * fixed spacing * removed reference to newtonsoft * bug fixes in deserialization * resolved conflicts * removed postProcessAllModels code now present in abstract * added a comment with url to an issue * removed unneeded code * removed change that should be another pr * build and update samples * reduce number of files modified * reduce number of files modified * delete and build samples * delete and build samples * fixed property name issue * fixed CodegenModel collection properties * avoid a conflict * avoid a conflict * add a todo * added todo * fixed circular reference * small changes * synced with other branches * commented some code for now * copied samples from master * changed mustache templates * build samples * fixed invalid property names * rebuild samples * rebuild samples * fixed casing issue * resolved conflicts * fixed bug in resolving conflicts * removed default api, users can handle that if required * removed default api, users can handle that if required * build samples......again.... * addressed comment * addressed comment * addressed comment * addressed comment * build samples
This commit is contained in:
@@ -16,5 +16,4 @@
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Org.OpenAPITools\Org.OpenAPITools.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -92,31 +92,38 @@ docs/scripts/git_push.ps1
|
||||
docs/scripts/git_push.sh
|
||||
src/Org.OpenAPITools.Test/Api/DependencyInjectionTests.cs
|
||||
src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj
|
||||
src/Org.OpenAPITools.Test/README.md
|
||||
src/Org.OpenAPITools/Api/AnotherFakeApi.cs
|
||||
src/Org.OpenAPITools/Api/DefaultApi.cs
|
||||
src/Org.OpenAPITools/Api/FakeApi.cs
|
||||
src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs
|
||||
src/Org.OpenAPITools/Api/IApi.cs
|
||||
src/Org.OpenAPITools/Api/PetApi.cs
|
||||
src/Org.OpenAPITools/Api/StoreApi.cs
|
||||
src/Org.OpenAPITools/Api/UserApi.cs
|
||||
src/Org.OpenAPITools/Client/ApiException.cs
|
||||
src/Org.OpenAPITools/Client/ApiFactory.cs
|
||||
src/Org.OpenAPITools/Client/ApiKeyToken.cs
|
||||
src/Org.OpenAPITools/Client/ApiResponseEventArgs.cs
|
||||
src/Org.OpenAPITools/Client/ApiResponse`1.cs
|
||||
src/Org.OpenAPITools/Client/BasicToken.cs
|
||||
src/Org.OpenAPITools/Client/BearerToken.cs
|
||||
src/Org.OpenAPITools/Client/ClientUtils.cs
|
||||
src/Org.OpenAPITools/Client/CookieContainer.cs
|
||||
src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs
|
||||
src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs
|
||||
src/Org.OpenAPITools/Client/HostConfiguration.cs
|
||||
src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
|
||||
src/Org.OpenAPITools/Client/HttpSigningToken.cs
|
||||
src/Org.OpenAPITools/Client/IApi.cs
|
||||
src/Org.OpenAPITools/Client/JsonSerializerOptionsProvider.cs
|
||||
src/Org.OpenAPITools/Client/OAuthToken.cs
|
||||
src/Org.OpenAPITools/Client/OpenAPIDateJsonConverter.cs
|
||||
src/Org.OpenAPITools/Client/RateLimitProvider`1.cs
|
||||
src/Org.OpenAPITools/Client/TokenBase.cs
|
||||
src/Org.OpenAPITools/Client/TokenContainer`1.cs
|
||||
src/Org.OpenAPITools/Client/TokenProvider`1.cs
|
||||
src/Org.OpenAPITools/Extensions/IHostBuilderExtensions.cs
|
||||
src/Org.OpenAPITools/Extensions/IHttpClientBuilderExtensions.cs
|
||||
src/Org.OpenAPITools/Extensions/IServiceCollectionExtensions.cs
|
||||
src/Org.OpenAPITools/Model/Activity.cs
|
||||
src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs
|
||||
src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs
|
||||
@@ -197,3 +204,4 @@ src/Org.OpenAPITools/Model/User.cs
|
||||
src/Org.OpenAPITools/Model/Whale.cs
|
||||
src/Org.OpenAPITools/Model/Zebra.cs
|
||||
src/Org.OpenAPITools/Org.OpenAPITools.csproj
|
||||
src/Org.OpenAPITools/README.md
|
||||
|
||||
@@ -1,259 +1 @@
|
||||
# Created with Openapi Generator
|
||||
|
||||
<a name="cli"></a>
|
||||
## Run the following powershell command to generate the library
|
||||
|
||||
```ps1
|
||||
$properties = @(
|
||||
'apiName=Api',
|
||||
'targetFramework=net7.0',
|
||||
'validatable=true',
|
||||
'nullableReferenceTypes=true',
|
||||
'hideGenerationTimestamp=true',
|
||||
'packageVersion=1.0.0',
|
||||
'packageAuthors=OpenAPI',
|
||||
'packageCompany=OpenAPI',
|
||||
'packageCopyright=No Copyright',
|
||||
'packageDescription=A library generated from a OpenAPI doc',
|
||||
'packageName=Org.OpenAPITools',
|
||||
'packageTags=',
|
||||
'packageTitle=OpenAPI Library'
|
||||
) -join ","
|
||||
|
||||
$global = @(
|
||||
'apiDocs=true',
|
||||
'modelDocs=true',
|
||||
'apiTests=true',
|
||||
'modelTests=true'
|
||||
) -join ","
|
||||
|
||||
java -jar "<path>/openapi-generator/modules/openapi-generator-cli/target/openapi-generator-cli.jar" generate `
|
||||
-g csharp-netcore `
|
||||
-i <your-swagger-file>.yaml `
|
||||
-o <your-output-folder> `
|
||||
--library generichost `
|
||||
--additional-properties $properties `
|
||||
--global-property $global `
|
||||
--git-host "github.com" `
|
||||
--git-repo-id "GIT_REPO_ID" `
|
||||
--git-user-id "GIT_USER_ID" `
|
||||
--release-note "Minor update"
|
||||
# -t templates
|
||||
```
|
||||
|
||||
<a name="usage"></a>
|
||||
## Using the library in your project
|
||||
|
||||
```cs
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Client;
|
||||
using Org.OpenAPITools.Model;
|
||||
|
||||
namespace YourProject
|
||||
{
|
||||
public class Program
|
||||
{
|
||||
public static async Task Main(string[] args)
|
||||
{
|
||||
var host = CreateHostBuilder(args).Build();
|
||||
var api = host.Services.GetRequiredService<IAnotherFakeApi>();
|
||||
ApiResponse<ModelClient?> foo = await api.Call123TestSpecialTagsWithHttpInfoAsync("todo");
|
||||
}
|
||||
|
||||
public static IHostBuilder CreateHostBuilder(string[] args) => Host.CreateDefaultBuilder(args)
|
||||
.ConfigureApi((context, options) =>
|
||||
{
|
||||
// the type of token here depends on the api security specifications
|
||||
ApiKeyToken token = new("<your token>");
|
||||
options.AddTokens(token);
|
||||
|
||||
// optionally choose the method the tokens will be provided with, default is RateLimitProvider
|
||||
options.UseProvider<RateLimitProvider<ApiKeyToken>, ApiKeyToken>();
|
||||
|
||||
// the type of token here depends on the api security specifications
|
||||
ApiKeyToken token = new("<your token>");
|
||||
options.AddTokens(token);
|
||||
|
||||
// optionally choose the method the tokens will be provided with, default is RateLimitProvider
|
||||
options.UseProvider<RateLimitProvider<ApiKeyToken>, ApiKeyToken>();
|
||||
|
||||
// the type of token here depends on the api security specifications
|
||||
ApiKeyToken token = new("<your token>");
|
||||
options.AddTokens(token);
|
||||
|
||||
// optionally choose the method the tokens will be provided with, default is RateLimitProvider
|
||||
options.UseProvider<RateLimitProvider<ApiKeyToken>, ApiKeyToken>();
|
||||
|
||||
// the type of token here depends on the api security specifications
|
||||
ApiKeyToken token = new("<your token>");
|
||||
options.AddTokens(token);
|
||||
|
||||
// optionally choose the method the tokens will be provided with, default is RateLimitProvider
|
||||
options.UseProvider<RateLimitProvider<ApiKeyToken>, ApiKeyToken>();
|
||||
|
||||
// the type of token here depends on the api security specifications
|
||||
ApiKeyToken token = new("<your token>");
|
||||
options.AddTokens(token);
|
||||
|
||||
// optionally choose the method the tokens will be provided with, default is RateLimitProvider
|
||||
options.UseProvider<RateLimitProvider<ApiKeyToken>, ApiKeyToken>();
|
||||
|
||||
// the type of token here depends on the api security specifications
|
||||
ApiKeyToken token = new("<your token>");
|
||||
options.AddTokens(token);
|
||||
|
||||
// optionally choose the method the tokens will be provided with, default is RateLimitProvider
|
||||
options.UseProvider<RateLimitProvider<ApiKeyToken>, ApiKeyToken>();
|
||||
|
||||
options.ConfigureJsonOptions((jsonOptions) =>
|
||||
{
|
||||
// your custom converters if any
|
||||
});
|
||||
|
||||
options.AddApiHttpClients(builder: builder => builder
|
||||
.AddRetryPolicy(2)
|
||||
.AddTimeoutPolicy(TimeSpan.FromSeconds(5))
|
||||
.AddCircuitBreakerPolicy(10, TimeSpan.FromSeconds(30))
|
||||
// add whatever middleware you prefer
|
||||
);
|
||||
});
|
||||
}
|
||||
}
|
||||
```
|
||||
<a name="questions"></a>
|
||||
## Questions
|
||||
|
||||
- What about HttpRequest failures and retries?
|
||||
If supportsRetry is enabled, you can configure Polly in the ConfigureClients method.
|
||||
- How are tokens used?
|
||||
Tokens are provided by a TokenProvider class. The default is RateLimitProvider which will perform client side rate limiting.
|
||||
Other providers can be used with the UseProvider method.
|
||||
- Does an HttpRequest throw an error when the server response is not Ok?
|
||||
It depends how you made the request. If the return type is ApiResponse<T> no error will be thrown, though the Content property will be null.
|
||||
StatusCode and ReasonPhrase will contain information about the error.
|
||||
If the return type is T, then it will throw. If the return type is TOrDefault, it will return null.
|
||||
|
||||
<a name="dependencies"></a>
|
||||
## Dependencies
|
||||
|
||||
- [Microsoft.Extensions.Hosting](https://www.nuget.org/packages/Microsoft.Extensions.Hosting/) - 5.0.0 or later
|
||||
- [Microsoft.Extensions.Http](https://www.nuget.org/packages/Microsoft.Extensions.Http/) - 5.0.0 or later
|
||||
- [Microsoft.Extensions.Http.Polly](https://www.nuget.org/packages/Microsoft.Extensions.Http.Polly/) - 5.0.1 or later
|
||||
- [Polly](https://www.nuget.org/packages/Polly/) - 7.2.3 or later
|
||||
- [Newtonsoft.Json](https://www.nuget.org/packages/Newtonsoft.Json/) - 13.0.1 or later
|
||||
- [JsonSubTypes](https://www.nuget.org/packages/JsonSubTypes/) - 1.7.0 or later
|
||||
- [CompareNETObjects](https://www.nuget.org/packages/CompareNETObjects) - 4.61.0 or later
|
||||
- [System.ComponentModel.Annotations](https://www.nuget.org/packages/System.ComponentModel.Annotations) - 4.7.0 or later
|
||||
|
||||
<a name="documentation-for-authorization"></a>
|
||||
## Documentation for Authorization
|
||||
|
||||
Authentication schemes defined for the API:
|
||||
|
||||
<a name="api_key"></a>
|
||||
### api_key
|
||||
|
||||
- **Type**: API key
|
||||
- **API key parameter name**: api_key
|
||||
- **Location**: HTTP header
|
||||
|
||||
<a name="api_key_query"></a>
|
||||
### api_key_query
|
||||
|
||||
- **Type**: API key
|
||||
- **API key parameter name**: api_key_query
|
||||
- **Location**: URL query string
|
||||
|
||||
<a name="bearer_test"></a>
|
||||
### bearer_test
|
||||
|
||||
|
||||
- **Type**: Bearer Authentication
|
||||
|
||||
<a name="http_basic_test"></a>
|
||||
### http_basic_test
|
||||
|
||||
|
||||
- **Type**: HTTP basic authentication
|
||||
|
||||
<a name="http_signature_test"></a>
|
||||
### http_signature_test
|
||||
|
||||
|
||||
|
||||
<a name="petstore_auth"></a>
|
||||
### petstore_auth
|
||||
|
||||
|
||||
- **Type**: OAuth
|
||||
- **Flow**: implicit
|
||||
- **Authorization URL**: http://petstore.swagger.io/api/oauth/dialog
|
||||
- **Scopes**:
|
||||
- write:pets: modify pets in your account
|
||||
- read:pets: read your pets
|
||||
|
||||
## Build
|
||||
- SDK version: 1.0.0
|
||||
- Build package: org.openapitools.codegen.languages.CSharpNetCoreClientCodegen
|
||||
|
||||
## Api Information
|
||||
- appName: OpenAPI Petstore
|
||||
- appVersion: 1.0.0
|
||||
- appDescription: This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
|
||||
## [OpenApi Global properties](https://openapi-generator.tech/docs/globals)
|
||||
- generateAliasAsModel:
|
||||
- supportingFiles:
|
||||
- models: omitted for brevity
|
||||
- apis: omitted for brevity
|
||||
- apiDocs: true
|
||||
- modelDocs: true
|
||||
- apiTests: true
|
||||
- modelTests: true
|
||||
- withXml:
|
||||
|
||||
## [OpenApi Generator Parameters](https://openapi-generator.tech/docs/generators/csharp-netcore)
|
||||
- allowUnicodeIdentifiers:
|
||||
- apiName: Api
|
||||
- caseInsensitiveResponseHeaders:
|
||||
- conditionalSerialization: false
|
||||
- disallowAdditionalPropertiesIfNotPresent: false
|
||||
- gitHost: github.com
|
||||
- gitRepoId: GIT_REPO_ID
|
||||
- gitUserId: GIT_USER_ID
|
||||
- hideGenerationTimestamp: true
|
||||
- interfacePrefix: I
|
||||
- library: generichost
|
||||
- licenseId:
|
||||
- modelPropertyNaming:
|
||||
- netCoreProjectFile: false
|
||||
- nonPublicApi: false
|
||||
- nullableReferenceTypes: true
|
||||
- optionalAssemblyInfo:
|
||||
- optionalEmitDefaultValues: false
|
||||
- optionalMethodArgument: true
|
||||
- optionalProjectFile:
|
||||
- packageAuthors: OpenAPI
|
||||
- packageCompany: OpenAPI
|
||||
- packageCopyright: No Copyright
|
||||
- packageDescription: A library generated from a OpenAPI doc
|
||||
- packageGuid: {321C8C3F-0156-40C1-AE42-D59761FB9B6C}
|
||||
- packageName: Org.OpenAPITools
|
||||
- packageTags:
|
||||
- packageTitle: OpenAPI Library
|
||||
- packageVersion: 1.0.0
|
||||
- releaseNote: Minor update
|
||||
- returnICollection: false
|
||||
- sortParamsByRequiredFlag:
|
||||
- sourceFolder: src
|
||||
- targetFramework: net7.0
|
||||
- useCollection: false
|
||||
- useDateTimeOffset: false
|
||||
- useOneOfDiscriminatorLookup: false
|
||||
- validatable: true
|
||||
|
||||
This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project.
|
||||
|
||||
@@ -631,7 +631,7 @@ No authorization required
|
||||
|
||||
<a name="testbodywithqueryparams"></a>
|
||||
# **TestBodyWithQueryParams**
|
||||
> void TestBodyWithQueryParams (string query, User user)
|
||||
> void TestBodyWithQueryParams (User user, string query)
|
||||
|
||||
|
||||
|
||||
@@ -652,12 +652,12 @@ namespace Example
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new FakeApi(config);
|
||||
var query = "query_example"; // string |
|
||||
var user = new User(); // User |
|
||||
var query = "query_example"; // string |
|
||||
|
||||
try
|
||||
{
|
||||
apiInstance.TestBodyWithQueryParams(query, user);
|
||||
apiInstance.TestBodyWithQueryParams(user, query);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
@@ -676,7 +676,7 @@ This returns an ApiResponse object which contains the response data, status code
|
||||
```csharp
|
||||
try
|
||||
{
|
||||
apiInstance.TestBodyWithQueryParamsWithHttpInfo(query, user);
|
||||
apiInstance.TestBodyWithQueryParamsWithHttpInfo(user, query);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
@@ -690,8 +690,8 @@ catch (ApiException e)
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
|------|------|-------------|-------|
|
||||
| **query** | **string** | | |
|
||||
| **user** | [**User**](User.md) | | |
|
||||
| **query** | **string** | | |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -807,7 +807,7 @@ No authorization required
|
||||
|
||||
<a name="testendpointparameters"></a>
|
||||
# **TestEndpointParameters**
|
||||
> void TestEndpointParameters (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string? _string = null, System.IO.Stream? binary = null, DateTime? date = null, string? password = null, string? callback = null, DateTime? dateTime = null)
|
||||
> void TestEndpointParameters (byte[] _byte, decimal number, double _double, string patternWithoutDelimiter, DateTime? date = null, System.IO.Stream? binary = null, float? _float = null, int? integer = null, int? int32 = null, long? int64 = null, string? _string = null, string? password = null, string? callback = null, DateTime? dateTime = null)
|
||||
|
||||
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
|
||||
@@ -834,17 +834,17 @@ namespace Example
|
||||
config.Password = "YOUR_PASSWORD";
|
||||
|
||||
var apiInstance = new FakeApi(config);
|
||||
var _byte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None
|
||||
var number = 8.14D; // decimal | None
|
||||
var _double = 1.2D; // double | None
|
||||
var patternWithoutDelimiter = "patternWithoutDelimiter_example"; // string | None
|
||||
var _byte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None
|
||||
var date = DateTime.Parse("2013-10-20"); // DateTime? | None (optional)
|
||||
var binary = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream? | None (optional)
|
||||
var _float = 3.4F; // float? | None (optional)
|
||||
var integer = 56; // int? | None (optional)
|
||||
var int32 = 56; // int? | None (optional)
|
||||
var int64 = 789L; // long? | None (optional)
|
||||
var _float = 3.4F; // float? | None (optional)
|
||||
var _string = "_string_example"; // string? | None (optional)
|
||||
var binary = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream? | None (optional)
|
||||
var date = DateTime.Parse("2013-10-20"); // DateTime? | None (optional)
|
||||
var password = "password_example"; // string? | None (optional)
|
||||
var callback = "callback_example"; // string? | None (optional)
|
||||
var dateTime = DateTime.Parse(""2010-02-01T10:20:10.111110+01:00""); // DateTime? | None (optional) (default to "2010-02-01T10:20:10.111110+01:00")
|
||||
@@ -852,7 +852,7 @@ namespace Example
|
||||
try
|
||||
{
|
||||
// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
apiInstance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, password, callback, dateTime);
|
||||
apiInstance.TestEndpointParameters(_byte, number, _double, patternWithoutDelimiter, date, binary, _float, integer, int32, int64, _string, password, callback, dateTime);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
@@ -872,7 +872,7 @@ This returns an ApiResponse object which contains the response data, status code
|
||||
try
|
||||
{
|
||||
// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
apiInstance.TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, password, callback, dateTime);
|
||||
apiInstance.TestEndpointParametersWithHttpInfo(_byte, number, _double, patternWithoutDelimiter, date, binary, _float, integer, int32, int64, _string, password, callback, dateTime);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
@@ -886,17 +886,17 @@ catch (ApiException e)
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
|------|------|-------------|-------|
|
||||
| **_byte** | **byte[]** | None | |
|
||||
| **number** | **decimal** | None | |
|
||||
| **_double** | **double** | None | |
|
||||
| **patternWithoutDelimiter** | **string** | None | |
|
||||
| **_byte** | **byte[]** | None | |
|
||||
| **date** | **DateTime?** | None | [optional] |
|
||||
| **binary** | **System.IO.Stream?****System.IO.Stream?** | None | [optional] |
|
||||
| **_float** | **float?** | None | [optional] |
|
||||
| **integer** | **int?** | None | [optional] |
|
||||
| **int32** | **int?** | None | [optional] |
|
||||
| **int64** | **long?** | None | [optional] |
|
||||
| **_float** | **float?** | None | [optional] |
|
||||
| **_string** | **string?** | None | [optional] |
|
||||
| **binary** | **System.IO.Stream?****System.IO.Stream?** | None | [optional] |
|
||||
| **date** | **DateTime?** | None | [optional] |
|
||||
| **password** | **string?** | None | [optional] |
|
||||
| **callback** | **string?** | None | [optional] |
|
||||
| **dateTime** | **DateTime?** | None | [optional] [default to "2010-02-01T10:20:10.111110+01:00"] |
|
||||
@@ -925,7 +925,7 @@ void (empty response body)
|
||||
|
||||
<a name="testenumparameters"></a>
|
||||
# **TestEnumParameters**
|
||||
> void TestEnumParameters (List<string>? enumHeaderStringArray = null, List<string>? enumQueryStringArray = null, int? enumQueryInteger = null, double? enumQueryDouble = null, string? enumHeaderString = null, string? enumQueryString = null, List<string>? enumFormStringArray = null, string? enumFormString = null)
|
||||
> void TestEnumParameters (List<string>? enumHeaderStringArray = null, List<string>? enumQueryStringArray = null, double? enumQueryDouble = null, int? enumQueryInteger = null, List<string>? enumFormStringArray = null, string? enumHeaderString = null, string? enumQueryString = null, string? enumFormString = null)
|
||||
|
||||
To test enum parameters
|
||||
|
||||
@@ -950,17 +950,17 @@ namespace Example
|
||||
var apiInstance = new FakeApi(config);
|
||||
var enumHeaderStringArray = new List<string>?(); // List<string>? | Header parameter enum test (string array) (optional)
|
||||
var enumQueryStringArray = new List<string>?(); // List<string>? | Query parameter enum test (string array) (optional)
|
||||
var enumQueryInteger = 1; // int? | Query parameter enum test (double) (optional)
|
||||
var enumQueryDouble = 1.1D; // double? | Query parameter enum test (double) (optional)
|
||||
var enumQueryInteger = 1; // int? | Query parameter enum test (double) (optional)
|
||||
var enumFormStringArray = new List<string>?(); // List<string>? | Form parameter enum test (string array) (optional) (default to $)
|
||||
var enumHeaderString = "_abc"; // string? | Header parameter enum test (string) (optional) (default to -efg)
|
||||
var enumQueryString = "_abc"; // string? | Query parameter enum test (string) (optional) (default to -efg)
|
||||
var enumFormStringArray = new List<string>?(); // List<string>? | Form parameter enum test (string array) (optional) (default to $)
|
||||
var enumFormString = "_abc"; // string? | Form parameter enum test (string) (optional) (default to -efg)
|
||||
|
||||
try
|
||||
{
|
||||
// To test enum parameters
|
||||
apiInstance.TestEnumParameters(enumHeaderStringArray, enumQueryStringArray, enumQueryInteger, enumQueryDouble, enumHeaderString, enumQueryString, enumFormStringArray, enumFormString);
|
||||
apiInstance.TestEnumParameters(enumHeaderStringArray, enumQueryStringArray, enumQueryDouble, enumQueryInteger, enumFormStringArray, enumHeaderString, enumQueryString, enumFormString);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
@@ -980,7 +980,7 @@ This returns an ApiResponse object which contains the response data, status code
|
||||
try
|
||||
{
|
||||
// To test enum parameters
|
||||
apiInstance.TestEnumParametersWithHttpInfo(enumHeaderStringArray, enumQueryStringArray, enumQueryInteger, enumQueryDouble, enumHeaderString, enumQueryString, enumFormStringArray, enumFormString);
|
||||
apiInstance.TestEnumParametersWithHttpInfo(enumHeaderStringArray, enumQueryStringArray, enumQueryDouble, enumQueryInteger, enumFormStringArray, enumHeaderString, enumQueryString, enumFormString);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
@@ -996,11 +996,11 @@ catch (ApiException e)
|
||||
|------|------|-------------|-------|
|
||||
| **enumHeaderStringArray** | [**List<string>?**](string.md) | Header parameter enum test (string array) | [optional] |
|
||||
| **enumQueryStringArray** | [**List<string>?**](string.md) | Query parameter enum test (string array) | [optional] |
|
||||
| **enumQueryInteger** | **int?** | Query parameter enum test (double) | [optional] |
|
||||
| **enumQueryDouble** | **double?** | Query parameter enum test (double) | [optional] |
|
||||
| **enumQueryInteger** | **int?** | Query parameter enum test (double) | [optional] |
|
||||
| **enumFormStringArray** | [**List<string>?**](string.md) | Form parameter enum test (string array) | [optional] [default to $] |
|
||||
| **enumHeaderString** | **string?** | Header parameter enum test (string) | [optional] [default to -efg] |
|
||||
| **enumQueryString** | **string?** | Query parameter enum test (string) | [optional] [default to -efg] |
|
||||
| **enumFormStringArray** | [**List<string>?**](string.md) | Form parameter enum test (string array) | [optional] [default to $] |
|
||||
| **enumFormString** | **string?** | Form parameter enum test (string) | [optional] [default to -efg] |
|
||||
|
||||
### Return type
|
||||
@@ -1027,7 +1027,7 @@ No authorization required
|
||||
|
||||
<a name="testgroupparameters"></a>
|
||||
# **TestGroupParameters**
|
||||
> void TestGroupParameters (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null)
|
||||
> void TestGroupParameters (bool requiredBooleanGroup, int requiredStringGroup, long requiredInt64Group, bool? booleanGroup = null, int? stringGroup = null, long? int64Group = null)
|
||||
|
||||
Fake endpoint to test group parameters (optional)
|
||||
|
||||
@@ -1053,17 +1053,17 @@ namespace Example
|
||||
config.AccessToken = "YOUR_BEARER_TOKEN";
|
||||
|
||||
var apiInstance = new FakeApi(config);
|
||||
var requiredStringGroup = 56; // int | Required String in group parameters
|
||||
var requiredBooleanGroup = true; // bool | Required Boolean in group parameters
|
||||
var requiredStringGroup = 56; // int | Required String in group parameters
|
||||
var requiredInt64Group = 789L; // long | Required Integer in group parameters
|
||||
var stringGroup = 56; // int? | String in group parameters (optional)
|
||||
var booleanGroup = true; // bool? | Boolean in group parameters (optional)
|
||||
var stringGroup = 56; // int? | String in group parameters (optional)
|
||||
var int64Group = 789L; // long? | Integer in group parameters (optional)
|
||||
|
||||
try
|
||||
{
|
||||
// Fake endpoint to test group parameters (optional)
|
||||
apiInstance.TestGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
|
||||
apiInstance.TestGroupParameters(requiredBooleanGroup, requiredStringGroup, requiredInt64Group, booleanGroup, stringGroup, int64Group);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
@@ -1083,7 +1083,7 @@ This returns an ApiResponse object which contains the response data, status code
|
||||
try
|
||||
{
|
||||
// Fake endpoint to test group parameters (optional)
|
||||
apiInstance.TestGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
|
||||
apiInstance.TestGroupParametersWithHttpInfo(requiredBooleanGroup, requiredStringGroup, requiredInt64Group, booleanGroup, stringGroup, int64Group);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
@@ -1097,11 +1097,11 @@ catch (ApiException e)
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
|------|------|-------------|-------|
|
||||
| **requiredStringGroup** | **int** | Required String in group parameters | |
|
||||
| **requiredBooleanGroup** | **bool** | Required Boolean in group parameters | |
|
||||
| **requiredStringGroup** | **int** | Required String in group parameters | |
|
||||
| **requiredInt64Group** | **long** | Required Integer in group parameters | |
|
||||
| **stringGroup** | **int?** | String in group parameters | [optional] |
|
||||
| **booleanGroup** | **bool?** | Boolean in group parameters | [optional] |
|
||||
| **stringGroup** | **int?** | String in group parameters | [optional] |
|
||||
| **int64Group** | **long?** | Integer in group parameters | [optional] |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -664,7 +664,7 @@ void (empty response body)
|
||||
|
||||
<a name="uploadfile"></a>
|
||||
# **UploadFile**
|
||||
> ApiResponse UploadFile (long petId, string? additionalMetadata = null, System.IO.Stream? file = null)
|
||||
> ApiResponse UploadFile (long petId, System.IO.Stream? file = null, string? additionalMetadata = null)
|
||||
|
||||
uploads an image
|
||||
|
||||
@@ -689,13 +689,13 @@ namespace Example
|
||||
|
||||
var apiInstance = new PetApi(config);
|
||||
var petId = 789L; // long | ID of pet to update
|
||||
var additionalMetadata = "additionalMetadata_example"; // string? | Additional data to pass to server (optional)
|
||||
var file = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream? | file to upload (optional)
|
||||
var additionalMetadata = "additionalMetadata_example"; // string? | Additional data to pass to server (optional)
|
||||
|
||||
try
|
||||
{
|
||||
// uploads an image
|
||||
ApiResponse result = apiInstance.UploadFile(petId, additionalMetadata, file);
|
||||
ApiResponse result = apiInstance.UploadFile(petId, file, additionalMetadata);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (ApiException e)
|
||||
@@ -716,7 +716,7 @@ This returns an ApiResponse object which contains the response data, status code
|
||||
try
|
||||
{
|
||||
// uploads an image
|
||||
ApiResponse<ApiResponse> response = apiInstance.UploadFileWithHttpInfo(petId, additionalMetadata, file);
|
||||
ApiResponse<ApiResponse> response = apiInstance.UploadFileWithHttpInfo(petId, file, additionalMetadata);
|
||||
Debug.Write("Status Code: " + response.StatusCode);
|
||||
Debug.Write("Response Headers: " + response.Headers);
|
||||
Debug.Write("Response Body: " + response.Data);
|
||||
@@ -734,8 +734,8 @@ catch (ApiException e)
|
||||
| Name | Type | Description | Notes |
|
||||
|------|------|-------------|-------|
|
||||
| **petId** | **long** | ID of pet to update | |
|
||||
| **additionalMetadata** | **string?** | Additional data to pass to server | [optional] |
|
||||
| **file** | **System.IO.Stream?****System.IO.Stream?** | file to upload | [optional] |
|
||||
| **additionalMetadata** | **string?** | Additional data to pass to server | [optional] |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -760,7 +760,7 @@ catch (ApiException e)
|
||||
|
||||
<a name="uploadfilewithrequiredfile"></a>
|
||||
# **UploadFileWithRequiredFile**
|
||||
> ApiResponse UploadFileWithRequiredFile (long petId, System.IO.Stream requiredFile, string? additionalMetadata = null)
|
||||
> ApiResponse UploadFileWithRequiredFile (System.IO.Stream requiredFile, long petId, string? additionalMetadata = null)
|
||||
|
||||
uploads an image (required)
|
||||
|
||||
@@ -784,14 +784,14 @@ namespace Example
|
||||
config.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
var apiInstance = new PetApi(config);
|
||||
var petId = 789L; // long | ID of pet to update
|
||||
var requiredFile = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | file to upload
|
||||
var petId = 789L; // long | ID of pet to update
|
||||
var additionalMetadata = "additionalMetadata_example"; // string? | Additional data to pass to server (optional)
|
||||
|
||||
try
|
||||
{
|
||||
// uploads an image (required)
|
||||
ApiResponse result = apiInstance.UploadFileWithRequiredFile(petId, requiredFile, additionalMetadata);
|
||||
ApiResponse result = apiInstance.UploadFileWithRequiredFile(requiredFile, petId, additionalMetadata);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (ApiException e)
|
||||
@@ -812,7 +812,7 @@ This returns an ApiResponse object which contains the response data, status code
|
||||
try
|
||||
{
|
||||
// uploads an image (required)
|
||||
ApiResponse<ApiResponse> response = apiInstance.UploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata);
|
||||
ApiResponse<ApiResponse> response = apiInstance.UploadFileWithRequiredFileWithHttpInfo(requiredFile, petId, additionalMetadata);
|
||||
Debug.Write("Status Code: " + response.StatusCode);
|
||||
Debug.Write("Response Headers: " + response.Headers);
|
||||
Debug.Write("Response Body: " + response.Data);
|
||||
@@ -829,8 +829,8 @@ catch (ApiException e)
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
|------|------|-------------|-------|
|
||||
| **petId** | **long** | ID of pet to update | |
|
||||
| **requiredFile** | **System.IO.Stream****System.IO.Stream** | file to upload | |
|
||||
| **petId** | **long** | ID of pet to update | |
|
||||
| **additionalMetadata** | **string?** | Additional data to pass to server | [optional] |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -623,7 +623,7 @@ No authorization required
|
||||
|
||||
<a name="updateuser"></a>
|
||||
# **UpdateUser**
|
||||
> void UpdateUser (string username, User user)
|
||||
> void UpdateUser (User user, string username)
|
||||
|
||||
Updated user
|
||||
|
||||
@@ -646,13 +646,13 @@ namespace Example
|
||||
Configuration config = new Configuration();
|
||||
config.BasePath = "http://petstore.swagger.io:80/v2";
|
||||
var apiInstance = new UserApi(config);
|
||||
var username = "username_example"; // string | name that need to be deleted
|
||||
var user = new User(); // User | Updated user object
|
||||
var username = "username_example"; // string | name that need to be deleted
|
||||
|
||||
try
|
||||
{
|
||||
// Updated user
|
||||
apiInstance.UpdateUser(username, user);
|
||||
apiInstance.UpdateUser(user, username);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
@@ -672,7 +672,7 @@ This returns an ApiResponse object which contains the response data, status code
|
||||
try
|
||||
{
|
||||
// Updated user
|
||||
apiInstance.UpdateUserWithHttpInfo(username, user);
|
||||
apiInstance.UpdateUserWithHttpInfo(user, username);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
@@ -686,8 +686,8 @@ catch (ApiException e)
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
|------|------|-------------|-------|
|
||||
| **username** | **string** | name that need to be deleted | |
|
||||
| **user** | [**User**](User.md) | Updated user object | |
|
||||
| **username** | **string** | name that need to be deleted | |
|
||||
|
||||
### Return type
|
||||
|
||||
|
||||
@@ -4,14 +4,14 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**MapProperty** | **Dictionary<string, string>** | | [optional]
|
||||
**EmptyMap** | **Object** | an object with no declared properties and no undeclared properties, hence it's an empty map. | [optional]
|
||||
**MapOfMapProperty** | **Dictionary<string, Dictionary<string, string>>** | | [optional]
|
||||
**Anytype1** | **Object** | | [optional]
|
||||
**MapProperty** | **Dictionary<string, string>** | | [optional]
|
||||
**MapWithUndeclaredPropertiesAnytype1** | **Object** | | [optional]
|
||||
**MapWithUndeclaredPropertiesAnytype2** | **Object** | | [optional]
|
||||
**MapWithUndeclaredPropertiesAnytype3** | **Dictionary<string, Object>** | | [optional]
|
||||
**EmptyMap** | **Object** | an object with no declared properties and no undeclared properties, hence it's an empty map. | [optional]
|
||||
**MapWithUndeclaredPropertiesString** | **Dictionary<string, string>** | | [optional]
|
||||
**Anytype1** | **Object** | | [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)
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Code** | **int** | | [optional]
|
||||
**Type** | **string** | | [optional]
|
||||
**Message** | **string** | | [optional]
|
||||
**Type** | **string** | | [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)
|
||||
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ArrayOfString** | **List<string>** | | [optional]
|
||||
**ArrayArrayOfInteger** | **List<List<long>>** | | [optional]
|
||||
**ArrayArrayOfModel** | **List<List<ReadOnlyFirst>>** | | [optional]
|
||||
**ArrayOfString** | **List<string>** | | [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)
|
||||
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**SmallCamel** | **string** | | [optional]
|
||||
**ATT_NAME** | **string** | Name of the pet | [optional]
|
||||
**CapitalCamel** | **string** | | [optional]
|
||||
**SmallSnake** | **string** | | [optional]
|
||||
**CapitalSnake** | **string** | | [optional]
|
||||
**SCAETHFlowPoints** | **string** | | [optional]
|
||||
**ATT_NAME** | **string** | Name of the pet | [optional]
|
||||
**SmallCamel** | **string** | | [optional]
|
||||
**SmallSnake** | **string** | | [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)
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Name** | **string** | | [default to "default-name"]
|
||||
**Id** | **long** | | [optional]
|
||||
**Name** | **string** | | [default to "default-name"]
|
||||
|
||||
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ Model for testing model with \"_class\" property
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Class** | **string** | | [optional]
|
||||
**ClassProperty** | **string** | | [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)
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**MainShape** | [**Shape**](Shape.md) | | [optional]
|
||||
**ShapeOrNull** | [**ShapeOrNull**](ShapeOrNull.md) | | [optional]
|
||||
**NullableShape** | [**NullableShape**](NullableShape.md) | | [optional]
|
||||
**Shapes** | [**List<Shape>**](Shape.md) | | [optional]
|
||||
**NullableShape** | [**NullableShape**](NullableShape.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)
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**JustSymbol** | **string** | | [optional]
|
||||
**ArrayEnum** | **List<EnumArrays.ArrayEnumEnum>** | | [optional]
|
||||
**JustSymbol** | **string** | | [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)
|
||||
|
||||
|
||||
@@ -4,15 +4,15 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**EnumStringRequired** | **string** | |
|
||||
**EnumString** | **string** | | [optional]
|
||||
**EnumInteger** | **int** | | [optional]
|
||||
**EnumIntegerOnly** | **int** | | [optional]
|
||||
**EnumNumber** | **double** | | [optional]
|
||||
**OuterEnum** | **OuterEnum** | | [optional]
|
||||
**OuterEnumInteger** | **OuterEnumInteger** | | [optional]
|
||||
**EnumString** | **string** | | [optional]
|
||||
**EnumStringRequired** | **string** | |
|
||||
**OuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional]
|
||||
**OuterEnumInteger** | **OuterEnumInteger** | | [optional]
|
||||
**OuterEnumIntegerDefaultValue** | **OuterEnumIntegerDefaultValue** | | [optional]
|
||||
**OuterEnum** | **OuterEnum** | | [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)
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**String** | [**Foo**](Foo.md) | | [optional]
|
||||
**StringProperty** | [**Foo**](Foo.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)
|
||||
|
||||
|
||||
@@ -4,22 +4,22 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Number** | **decimal** | |
|
||||
**Byte** | **byte[]** | |
|
||||
**Binary** | **System.IO.Stream** | | [optional]
|
||||
**ByteProperty** | **byte[]** | |
|
||||
**Date** | **DateTime** | |
|
||||
**Password** | **string** | |
|
||||
**Integer** | **int** | | [optional]
|
||||
**DateTime** | **DateTime** | | [optional]
|
||||
**DecimalProperty** | **decimal** | | [optional]
|
||||
**DoubleProperty** | **double** | | [optional]
|
||||
**FloatProperty** | **float** | | [optional]
|
||||
**Int32** | **int** | | [optional]
|
||||
**Int64** | **long** | | [optional]
|
||||
**Float** | **float** | | [optional]
|
||||
**Double** | **double** | | [optional]
|
||||
**Decimal** | **decimal** | | [optional]
|
||||
**String** | **string** | | [optional]
|
||||
**Binary** | **System.IO.Stream** | | [optional]
|
||||
**DateTime** | **DateTime** | | [optional]
|
||||
**Uuid** | **Guid** | | [optional]
|
||||
**Integer** | **int** | | [optional]
|
||||
**Number** | **decimal** | |
|
||||
**Password** | **string** | |
|
||||
**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [optional]
|
||||
**PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
|
||||
**StringProperty** | **string** | | [optional]
|
||||
**Uuid** | **Guid** | | [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)
|
||||
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**MapMapOfString** | **Dictionary<string, Dictionary<string, string>>** | | [optional]
|
||||
**MapOfEnumString** | **Dictionary<string, MapTest.InnerEnum>** | | [optional]
|
||||
**DirectMap** | **Dictionary<string, bool>** | | [optional]
|
||||
**IndirectMap** | **Dictionary<string, bool>** | | [optional]
|
||||
**MapMapOfString** | **Dictionary<string, Dictionary<string, string>>** | | [optional]
|
||||
**MapOfEnumString** | **Dictionary<string, MapTest.InnerEnum>** | | [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)
|
||||
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Uuid** | **Guid** | | [optional]
|
||||
**DateTime** | **DateTime** | | [optional]
|
||||
**Map** | [**Dictionary<string, Animal>**](Animal.md) | | [optional]
|
||||
**Uuid** | **Guid** | | [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)
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@ Model for testing model name starting with number
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ClassProperty** | **string** | | [optional]
|
||||
**Name** | **int** | | [optional]
|
||||
**Class** | **string** | | [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)
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**_Client** | **string** | | [optional]
|
||||
**_ClientProperty** | **string** | | [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)
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@ Model for testing model name same as property name
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**NameProperty** | **int** | |
|
||||
**SnakeCase** | **int** | | [optional] [readonly]
|
||||
**Property** | **string** | | [optional]
|
||||
**SnakeCase** | **int** | | [optional] [readonly]
|
||||
**_123Number** | **int** | | [optional] [readonly]
|
||||
|
||||
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
||||
|
||||
@@ -4,18 +4,18 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**IntegerProp** | **int?** | | [optional]
|
||||
**NumberProp** | **decimal?** | | [optional]
|
||||
**ArrayItemsNullable** | **List<Object>** | | [optional]
|
||||
**ObjectItemsNullable** | **Dictionary<string, Object>** | | [optional]
|
||||
**ArrayAndItemsNullableProp** | **List<Object>** | | [optional]
|
||||
**ArrayNullableProp** | **List<Object>** | | [optional]
|
||||
**BooleanProp** | **bool?** | | [optional]
|
||||
**StringProp** | **string** | | [optional]
|
||||
**DateProp** | **DateTime?** | | [optional]
|
||||
**DatetimeProp** | **DateTime?** | | [optional]
|
||||
**ArrayNullableProp** | **List<Object>** | | [optional]
|
||||
**ArrayAndItemsNullableProp** | **List<Object>** | | [optional]
|
||||
**ArrayItemsNullable** | **List<Object>** | | [optional]
|
||||
**ObjectNullableProp** | **Dictionary<string, Object>** | | [optional]
|
||||
**IntegerProp** | **int?** | | [optional]
|
||||
**NumberProp** | **decimal?** | | [optional]
|
||||
**ObjectAndItemsNullableProp** | **Dictionary<string, Object>** | | [optional]
|
||||
**ObjectItemsNullable** | **Dictionary<string, Object>** | | [optional]
|
||||
**ObjectNullableProp** | **Dictionary<string, Object>** | | [optional]
|
||||
**StringProp** | **string** | | [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)
|
||||
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Uuid** | **string** | | [optional]
|
||||
**Id** | **decimal** | | [optional]
|
||||
**DeprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional]
|
||||
**Bars** | **List<string>** | | [optional]
|
||||
**DeprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional]
|
||||
**Id** | **decimal** | | [optional]
|
||||
**Uuid** | **string** | | [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)
|
||||
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**MyBoolean** | **bool** | | [optional]
|
||||
**MyNumber** | **decimal** | | [optional]
|
||||
**MyString** | **string** | | [optional]
|
||||
**MyBoolean** | **bool** | | [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)
|
||||
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Category** | [**Category**](Category.md) | | [optional]
|
||||
**Id** | **long** | | [optional]
|
||||
**Name** | **string** | |
|
||||
**PhotoUrls** | **List<string>** | |
|
||||
**Id** | **long** | | [optional]
|
||||
**Category** | [**Category**](Category.md) | | [optional]
|
||||
**Tags** | [**List<Tag>**](Tag.md) | | [optional]
|
||||
**Status** | **string** | pet status in the store | [optional]
|
||||
**Tags** | [**List<Tag>**](Tag.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)
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**SpecialPropertyName** | **long** | | [optional]
|
||||
**SpecialModelNameProperty** | **string** | | [optional]
|
||||
**SpecialPropertyName** | **long** | | [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)
|
||||
|
||||
|
||||
@@ -4,18 +4,18 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Id** | **long** | | [optional]
|
||||
**Username** | **string** | | [optional]
|
||||
**FirstName** | **string** | | [optional]
|
||||
**LastName** | **string** | | [optional]
|
||||
**Email** | **string** | | [optional]
|
||||
**FirstName** | **string** | | [optional]
|
||||
**Id** | **long** | | [optional]
|
||||
**LastName** | **string** | | [optional]
|
||||
**ObjectWithNoDeclaredProps** | **Object** | test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. | [optional]
|
||||
**Password** | **string** | | [optional]
|
||||
**Phone** | **string** | | [optional]
|
||||
**UserStatus** | **int** | User Status | [optional]
|
||||
**ObjectWithNoDeclaredProps** | **Object** | test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. | [optional]
|
||||
**ObjectWithNoDeclaredPropsNullable** | **Object** | test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. | [optional]
|
||||
**Username** | **string** | | [optional]
|
||||
**AnyTypeProp** | **Object** | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 | [optional]
|
||||
**AnyTypePropNullable** | **Object** | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The 'nullable' attribute does not change the allowed values. | [optional]
|
||||
**ObjectWithNoDeclaredPropsNullable** | **Object** | test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. | [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)
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Xunit;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.IApi;
|
||||
using Org.OpenAPITools.Model;
|
||||
|
||||
|
||||
@@ -43,11 +43,11 @@ namespace Org.OpenAPITools.Test.Api
|
||||
/// </summary>
|
||||
public sealed class AnotherFakeApiTests : ApiTestsBase
|
||||
{
|
||||
private readonly IAnotherFakeApi _instance;
|
||||
private readonly IApi.IAnotherFakeApi _instance;
|
||||
|
||||
public AnotherFakeApiTests(): base(Array.Empty<string>())
|
||||
{
|
||||
_instance = _host.Services.GetRequiredService<IAnotherFakeApi>();
|
||||
_instance = _host.Services.GetRequiredService<IApi.IAnotherFakeApi>();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ using System.Collections.Generic;
|
||||
using System.Security.Cryptography;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using Org.OpenAPITools.Client;
|
||||
using Org.OpenAPITools.Extensions;
|
||||
|
||||
|
||||
/* *********************************************************************************
|
||||
@@ -49,7 +50,7 @@ namespace Org.OpenAPITools.Test.Api
|
||||
}
|
||||
|
||||
public static IHostBuilder CreateHostBuilder(string[] args) => Host.CreateDefaultBuilder(args)
|
||||
.ConfigureApi((context, options) =>
|
||||
.ConfigureApi((context, services, options) =>
|
||||
{
|
||||
ApiKeyToken apiKeyToken = new ApiKeyToken(context.Configuration["<token>"], timeout: TimeSpan.FromSeconds(1));
|
||||
options.AddTokens(apiKeyToken);
|
||||
|
||||
@@ -12,7 +12,7 @@ using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Xunit;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.IApi;
|
||||
using Org.OpenAPITools.Model;
|
||||
|
||||
|
||||
@@ -43,11 +43,11 @@ namespace Org.OpenAPITools.Test.Api
|
||||
/// </summary>
|
||||
public sealed class DefaultApiTests : ApiTestsBase
|
||||
{
|
||||
private readonly IDefaultApi _instance;
|
||||
private readonly IApi.IDefaultApi _instance;
|
||||
|
||||
public DefaultApiTests(): base(Array.Empty<string>())
|
||||
{
|
||||
_instance = _host.Services.GetRequiredService<IDefaultApi>();
|
||||
_instance = _host.Services.GetRequiredService<IApi.IDefaultApi>();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -13,7 +13,8 @@ using Microsoft.Extensions.DependencyInjection;
|
||||
using System.Collections.Generic;
|
||||
using System.Security.Cryptography;
|
||||
using Org.OpenAPITools.Client;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.IApi;
|
||||
using Org.OpenAPITools.Extensions;
|
||||
using Xunit;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Api
|
||||
@@ -24,7 +25,7 @@ namespace Org.OpenAPITools.Test.Api
|
||||
public class DependencyInjectionTest
|
||||
{
|
||||
private readonly IHost _hostUsingConfigureWithoutAClient =
|
||||
Host.CreateDefaultBuilder(Array.Empty<string>()).ConfigureApi((context, options) =>
|
||||
Host.CreateDefaultBuilder(Array.Empty<string>()).ConfigureApi((context, services, options) =>
|
||||
{
|
||||
ApiKeyToken apiKeyToken = new ApiKeyToken($"<token>", timeout: TimeSpan.FromSeconds(1));
|
||||
options.AddTokens(apiKeyToken);
|
||||
@@ -45,7 +46,7 @@ namespace Org.OpenAPITools.Test.Api
|
||||
.Build();
|
||||
|
||||
private readonly IHost _hostUsingConfigureWithAClient =
|
||||
Host.CreateDefaultBuilder(Array.Empty<string>()).ConfigureApi((context, options) =>
|
||||
Host.CreateDefaultBuilder(Array.Empty<string>()).ConfigureApi((context, services, options) =>
|
||||
{
|
||||
ApiKeyToken apiKeyToken = new ApiKeyToken($"<token>", timeout: TimeSpan.FromSeconds(1));
|
||||
options.AddTokens(apiKeyToken);
|
||||
@@ -121,25 +122,25 @@ namespace Org.OpenAPITools.Test.Api
|
||||
[Fact]
|
||||
public void ConfigureApiWithAClientTest()
|
||||
{
|
||||
var anotherFakeApi = _hostUsingConfigureWithAClient.Services.GetRequiredService<IAnotherFakeApi>();
|
||||
var anotherFakeApi = _hostUsingConfigureWithAClient.Services.GetRequiredService<IApi.IAnotherFakeApi>();
|
||||
Assert.True(anotherFakeApi.HttpClient.BaseAddress != null);
|
||||
|
||||
var defaultApi = _hostUsingConfigureWithAClient.Services.GetRequiredService<IDefaultApi>();
|
||||
var defaultApi = _hostUsingConfigureWithAClient.Services.GetRequiredService<IApi.IDefaultApi>();
|
||||
Assert.True(defaultApi.HttpClient.BaseAddress != null);
|
||||
|
||||
var fakeApi = _hostUsingConfigureWithAClient.Services.GetRequiredService<IFakeApi>();
|
||||
var fakeApi = _hostUsingConfigureWithAClient.Services.GetRequiredService<IApi.IFakeApi>();
|
||||
Assert.True(fakeApi.HttpClient.BaseAddress != null);
|
||||
|
||||
var fakeClassnameTags123Api = _hostUsingConfigureWithAClient.Services.GetRequiredService<IFakeClassnameTags123Api>();
|
||||
var fakeClassnameTags123Api = _hostUsingConfigureWithAClient.Services.GetRequiredService<IApi.IFakeClassnameTags123Api>();
|
||||
Assert.True(fakeClassnameTags123Api.HttpClient.BaseAddress != null);
|
||||
|
||||
var petApi = _hostUsingConfigureWithAClient.Services.GetRequiredService<IPetApi>();
|
||||
var petApi = _hostUsingConfigureWithAClient.Services.GetRequiredService<IApi.IPetApi>();
|
||||
Assert.True(petApi.HttpClient.BaseAddress != null);
|
||||
|
||||
var storeApi = _hostUsingConfigureWithAClient.Services.GetRequiredService<IStoreApi>();
|
||||
var storeApi = _hostUsingConfigureWithAClient.Services.GetRequiredService<IApi.IStoreApi>();
|
||||
Assert.True(storeApi.HttpClient.BaseAddress != null);
|
||||
|
||||
var userApi = _hostUsingConfigureWithAClient.Services.GetRequiredService<IUserApi>();
|
||||
var userApi = _hostUsingConfigureWithAClient.Services.GetRequiredService<IApi.IUserApi>();
|
||||
Assert.True(userApi.HttpClient.BaseAddress != null);
|
||||
}
|
||||
|
||||
@@ -149,25 +150,25 @@ namespace Org.OpenAPITools.Test.Api
|
||||
[Fact]
|
||||
public void ConfigureApiWithoutAClientTest()
|
||||
{
|
||||
var anotherFakeApi = _hostUsingConfigureWithoutAClient.Services.GetRequiredService<IAnotherFakeApi>();
|
||||
var anotherFakeApi = _hostUsingConfigureWithoutAClient.Services.GetRequiredService<IApi.IAnotherFakeApi>();
|
||||
Assert.True(anotherFakeApi.HttpClient.BaseAddress != null);
|
||||
|
||||
var defaultApi = _hostUsingConfigureWithoutAClient.Services.GetRequiredService<IDefaultApi>();
|
||||
var defaultApi = _hostUsingConfigureWithoutAClient.Services.GetRequiredService<IApi.IDefaultApi>();
|
||||
Assert.True(defaultApi.HttpClient.BaseAddress != null);
|
||||
|
||||
var fakeApi = _hostUsingConfigureWithoutAClient.Services.GetRequiredService<IFakeApi>();
|
||||
var fakeApi = _hostUsingConfigureWithoutAClient.Services.GetRequiredService<IApi.IFakeApi>();
|
||||
Assert.True(fakeApi.HttpClient.BaseAddress != null);
|
||||
|
||||
var fakeClassnameTags123Api = _hostUsingConfigureWithoutAClient.Services.GetRequiredService<IFakeClassnameTags123Api>();
|
||||
var fakeClassnameTags123Api = _hostUsingConfigureWithoutAClient.Services.GetRequiredService<IApi.IFakeClassnameTags123Api>();
|
||||
Assert.True(fakeClassnameTags123Api.HttpClient.BaseAddress != null);
|
||||
|
||||
var petApi = _hostUsingConfigureWithoutAClient.Services.GetRequiredService<IPetApi>();
|
||||
var petApi = _hostUsingConfigureWithoutAClient.Services.GetRequiredService<IApi.IPetApi>();
|
||||
Assert.True(petApi.HttpClient.BaseAddress != null);
|
||||
|
||||
var storeApi = _hostUsingConfigureWithoutAClient.Services.GetRequiredService<IStoreApi>();
|
||||
var storeApi = _hostUsingConfigureWithoutAClient.Services.GetRequiredService<IApi.IStoreApi>();
|
||||
Assert.True(storeApi.HttpClient.BaseAddress != null);
|
||||
|
||||
var userApi = _hostUsingConfigureWithoutAClient.Services.GetRequiredService<IUserApi>();
|
||||
var userApi = _hostUsingConfigureWithoutAClient.Services.GetRequiredService<IApi.IUserApi>();
|
||||
Assert.True(userApi.HttpClient.BaseAddress != null);
|
||||
}
|
||||
|
||||
@@ -177,25 +178,25 @@ namespace Org.OpenAPITools.Test.Api
|
||||
[Fact]
|
||||
public void AddApiWithAClientTest()
|
||||
{
|
||||
var anotherFakeApi = _hostUsingAddWithAClient.Services.GetRequiredService<IAnotherFakeApi>();
|
||||
var anotherFakeApi = _hostUsingAddWithAClient.Services.GetRequiredService<IApi.IAnotherFakeApi>();
|
||||
Assert.True(anotherFakeApi.HttpClient.BaseAddress != null);
|
||||
|
||||
var defaultApi = _hostUsingAddWithAClient.Services.GetRequiredService<IDefaultApi>();
|
||||
var defaultApi = _hostUsingAddWithAClient.Services.GetRequiredService<IApi.IDefaultApi>();
|
||||
Assert.True(defaultApi.HttpClient.BaseAddress != null);
|
||||
|
||||
var fakeApi = _hostUsingAddWithAClient.Services.GetRequiredService<IFakeApi>();
|
||||
var fakeApi = _hostUsingAddWithAClient.Services.GetRequiredService<IApi.IFakeApi>();
|
||||
Assert.True(fakeApi.HttpClient.BaseAddress != null);
|
||||
|
||||
var fakeClassnameTags123Api = _hostUsingAddWithAClient.Services.GetRequiredService<IFakeClassnameTags123Api>();
|
||||
var fakeClassnameTags123Api = _hostUsingAddWithAClient.Services.GetRequiredService<IApi.IFakeClassnameTags123Api>();
|
||||
Assert.True(fakeClassnameTags123Api.HttpClient.BaseAddress != null);
|
||||
|
||||
var petApi = _hostUsingAddWithAClient.Services.GetRequiredService<IPetApi>();
|
||||
var petApi = _hostUsingAddWithAClient.Services.GetRequiredService<IApi.IPetApi>();
|
||||
Assert.True(petApi.HttpClient.BaseAddress != null);
|
||||
|
||||
var storeApi = _hostUsingAddWithAClient.Services.GetRequiredService<IStoreApi>();
|
||||
var storeApi = _hostUsingAddWithAClient.Services.GetRequiredService<IApi.IStoreApi>();
|
||||
Assert.True(storeApi.HttpClient.BaseAddress != null);
|
||||
|
||||
var userApi = _hostUsingAddWithAClient.Services.GetRequiredService<IUserApi>();
|
||||
var userApi = _hostUsingAddWithAClient.Services.GetRequiredService<IApi.IUserApi>();
|
||||
Assert.True(userApi.HttpClient.BaseAddress != null);
|
||||
}
|
||||
|
||||
@@ -205,25 +206,25 @@ namespace Org.OpenAPITools.Test.Api
|
||||
[Fact]
|
||||
public void AddApiWithoutAClientTest()
|
||||
{
|
||||
var anotherFakeApi = _hostUsingAddWithoutAClient.Services.GetRequiredService<IAnotherFakeApi>();
|
||||
var anotherFakeApi = _hostUsingAddWithoutAClient.Services.GetRequiredService<IApi.IAnotherFakeApi>();
|
||||
Assert.True(anotherFakeApi.HttpClient.BaseAddress != null);
|
||||
|
||||
var defaultApi = _hostUsingAddWithoutAClient.Services.GetRequiredService<IDefaultApi>();
|
||||
var defaultApi = _hostUsingAddWithoutAClient.Services.GetRequiredService<IApi.IDefaultApi>();
|
||||
Assert.True(defaultApi.HttpClient.BaseAddress != null);
|
||||
|
||||
var fakeApi = _hostUsingAddWithoutAClient.Services.GetRequiredService<IFakeApi>();
|
||||
var fakeApi = _hostUsingAddWithoutAClient.Services.GetRequiredService<IApi.IFakeApi>();
|
||||
Assert.True(fakeApi.HttpClient.BaseAddress != null);
|
||||
|
||||
var fakeClassnameTags123Api = _hostUsingAddWithoutAClient.Services.GetRequiredService<IFakeClassnameTags123Api>();
|
||||
var fakeClassnameTags123Api = _hostUsingAddWithoutAClient.Services.GetRequiredService<IApi.IFakeClassnameTags123Api>();
|
||||
Assert.True(fakeClassnameTags123Api.HttpClient.BaseAddress != null);
|
||||
|
||||
var petApi = _hostUsingAddWithoutAClient.Services.GetRequiredService<IPetApi>();
|
||||
var petApi = _hostUsingAddWithoutAClient.Services.GetRequiredService<IApi.IPetApi>();
|
||||
Assert.True(petApi.HttpClient.BaseAddress != null);
|
||||
|
||||
var storeApi = _hostUsingAddWithoutAClient.Services.GetRequiredService<IStoreApi>();
|
||||
var storeApi = _hostUsingAddWithoutAClient.Services.GetRequiredService<IApi.IStoreApi>();
|
||||
Assert.True(storeApi.HttpClient.BaseAddress != null);
|
||||
|
||||
var userApi = _hostUsingAddWithoutAClient.Services.GetRequiredService<IUserApi>();
|
||||
var userApi = _hostUsingAddWithoutAClient.Services.GetRequiredService<IApi.IUserApi>();
|
||||
Assert.True(userApi.HttpClient.BaseAddress != null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Xunit;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.IApi;
|
||||
using Org.OpenAPITools.Model;
|
||||
|
||||
|
||||
@@ -43,11 +43,11 @@ namespace Org.OpenAPITools.Test.Api
|
||||
/// </summary>
|
||||
public sealed class FakeApiTests : ApiTestsBase
|
||||
{
|
||||
private readonly IFakeApi _instance;
|
||||
private readonly IApi.IFakeApi _instance;
|
||||
|
||||
public FakeApiTests(): base(Array.Empty<string>())
|
||||
{
|
||||
_instance = _host.Services.GetRequiredService<IFakeApi>();
|
||||
_instance = _host.Services.GetRequiredService<IApi.IFakeApi>();
|
||||
}
|
||||
|
||||
|
||||
@@ -131,9 +131,9 @@ namespace Org.OpenAPITools.Test.Api
|
||||
[Fact (Skip = "not implemented")]
|
||||
public async Task TestBodyWithQueryParamsAsyncTest()
|
||||
{
|
||||
string query = default;
|
||||
User user = default;
|
||||
await _instance.TestBodyWithQueryParamsAsync(query, user);
|
||||
string query = default;
|
||||
await _instance.TestBodyWithQueryParamsAsync(user, query);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -153,21 +153,21 @@ namespace Org.OpenAPITools.Test.Api
|
||||
[Fact (Skip = "not implemented")]
|
||||
public async Task TestEndpointParametersAsyncTest()
|
||||
{
|
||||
byte[] _byte = default;
|
||||
decimal number = default;
|
||||
double _double = default;
|
||||
string patternWithoutDelimiter = default;
|
||||
byte[] _byte = default;
|
||||
DateTime? date = default;
|
||||
System.IO.Stream? binary = default;
|
||||
float? _float = default;
|
||||
int? integer = default;
|
||||
int? int32 = default;
|
||||
long? int64 = default;
|
||||
float? _float = default;
|
||||
string? _string = default;
|
||||
System.IO.Stream? binary = default;
|
||||
DateTime? date = default;
|
||||
string? password = default;
|
||||
string? callback = default;
|
||||
DateTime? dateTime = default;
|
||||
await _instance.TestEndpointParametersAsync(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, password, callback, dateTime);
|
||||
await _instance.TestEndpointParametersAsync(_byte, number, _double, patternWithoutDelimiter, date, binary, _float, integer, int32, int64, _string, password, callback, dateTime);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -178,13 +178,13 @@ namespace Org.OpenAPITools.Test.Api
|
||||
{
|
||||
List<string>? enumHeaderStringArray = default;
|
||||
List<string>? enumQueryStringArray = default;
|
||||
int? enumQueryInteger = default;
|
||||
double? enumQueryDouble = default;
|
||||
int? enumQueryInteger = default;
|
||||
List<string>? enumFormStringArray = default;
|
||||
string? enumHeaderString = default;
|
||||
string? enumQueryString = default;
|
||||
List<string>? enumFormStringArray = default;
|
||||
string? enumFormString = default;
|
||||
await _instance.TestEnumParametersAsync(enumHeaderStringArray, enumQueryStringArray, enumQueryInteger, enumQueryDouble, enumHeaderString, enumQueryString, enumFormStringArray, enumFormString);
|
||||
await _instance.TestEnumParametersAsync(enumHeaderStringArray, enumQueryStringArray, enumQueryDouble, enumQueryInteger, enumFormStringArray, enumHeaderString, enumQueryString, enumFormString);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -193,13 +193,13 @@ namespace Org.OpenAPITools.Test.Api
|
||||
[Fact (Skip = "not implemented")]
|
||||
public async Task TestGroupParametersAsyncTest()
|
||||
{
|
||||
int requiredStringGroup = default;
|
||||
bool requiredBooleanGroup = default;
|
||||
int requiredStringGroup = default;
|
||||
long requiredInt64Group = default;
|
||||
int? stringGroup = default;
|
||||
bool? booleanGroup = default;
|
||||
int? stringGroup = default;
|
||||
long? int64Group = default;
|
||||
await _instance.TestGroupParametersAsync(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
|
||||
await _instance.TestGroupParametersAsync(requiredBooleanGroup, requiredStringGroup, requiredInt64Group, booleanGroup, stringGroup, int64Group);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -12,7 +12,7 @@ using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Xunit;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.IApi;
|
||||
using Org.OpenAPITools.Model;
|
||||
|
||||
|
||||
@@ -43,11 +43,11 @@ namespace Org.OpenAPITools.Test.Api
|
||||
/// </summary>
|
||||
public sealed class FakeClassnameTags123ApiTests : ApiTestsBase
|
||||
{
|
||||
private readonly IFakeClassnameTags123Api _instance;
|
||||
private readonly IApi.IFakeClassnameTags123Api _instance;
|
||||
|
||||
public FakeClassnameTags123ApiTests(): base(Array.Empty<string>())
|
||||
{
|
||||
_instance = _host.Services.GetRequiredService<IFakeClassnameTags123Api>();
|
||||
_instance = _host.Services.GetRequiredService<IApi.IFakeClassnameTags123Api>();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Xunit;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.IApi;
|
||||
using Org.OpenAPITools.Model;
|
||||
|
||||
|
||||
@@ -43,11 +43,11 @@ namespace Org.OpenAPITools.Test.Api
|
||||
/// </summary>
|
||||
public sealed class PetApiTests : ApiTestsBase
|
||||
{
|
||||
private readonly IPetApi _instance;
|
||||
private readonly IApi.IPetApi _instance;
|
||||
|
||||
public PetApiTests(): base(Array.Empty<string>())
|
||||
{
|
||||
_instance = _host.Services.GetRequiredService<IPetApi>();
|
||||
_instance = _host.Services.GetRequiredService<IApi.IPetApi>();
|
||||
}
|
||||
|
||||
|
||||
@@ -134,9 +134,9 @@ namespace Org.OpenAPITools.Test.Api
|
||||
public async Task UploadFileAsyncTest()
|
||||
{
|
||||
long petId = default;
|
||||
string? additionalMetadata = default;
|
||||
System.IO.Stream? file = default;
|
||||
var response = await _instance.UploadFileAsync(petId, additionalMetadata, file);
|
||||
string? additionalMetadata = default;
|
||||
var response = await _instance.UploadFileAsync(petId, file, additionalMetadata);
|
||||
Assert.IsType<ApiResponse>(response);
|
||||
}
|
||||
|
||||
@@ -146,10 +146,10 @@ namespace Org.OpenAPITools.Test.Api
|
||||
[Fact (Skip = "not implemented")]
|
||||
public async Task UploadFileWithRequiredFileAsyncTest()
|
||||
{
|
||||
long petId = default;
|
||||
System.IO.Stream requiredFile = default;
|
||||
long petId = default;
|
||||
string? additionalMetadata = default;
|
||||
var response = await _instance.UploadFileWithRequiredFileAsync(petId, requiredFile, additionalMetadata);
|
||||
var response = await _instance.UploadFileWithRequiredFileAsync(requiredFile, petId, additionalMetadata);
|
||||
Assert.IsType<ApiResponse>(response);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Xunit;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.IApi;
|
||||
using Org.OpenAPITools.Model;
|
||||
|
||||
|
||||
@@ -43,11 +43,11 @@ namespace Org.OpenAPITools.Test.Api
|
||||
/// </summary>
|
||||
public sealed class StoreApiTests : ApiTestsBase
|
||||
{
|
||||
private readonly IStoreApi _instance;
|
||||
private readonly IApi.IStoreApi _instance;
|
||||
|
||||
public StoreApiTests(): base(Array.Empty<string>())
|
||||
{
|
||||
_instance = _host.Services.GetRequiredService<IStoreApi>();
|
||||
_instance = _host.Services.GetRequiredService<IApi.IStoreApi>();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Xunit;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.IApi;
|
||||
using Org.OpenAPITools.Model;
|
||||
|
||||
|
||||
@@ -43,11 +43,11 @@ namespace Org.OpenAPITools.Test.Api
|
||||
/// </summary>
|
||||
public sealed class UserApiTests : ApiTestsBase
|
||||
{
|
||||
private readonly IUserApi _instance;
|
||||
private readonly IApi.IUserApi _instance;
|
||||
|
||||
public UserApiTests(): base(Array.Empty<string>())
|
||||
{
|
||||
_instance = _host.Services.GetRequiredService<IUserApi>();
|
||||
_instance = _host.Services.GetRequiredService<IApi.IUserApi>();
|
||||
}
|
||||
|
||||
|
||||
@@ -129,9 +129,9 @@ namespace Org.OpenAPITools.Test.Api
|
||||
[Fact (Skip = "not implemented")]
|
||||
public async Task UpdateUserAsyncTest()
|
||||
{
|
||||
string username = default;
|
||||
User user = default;
|
||||
await _instance.UpdateUserAsync(username, user);
|
||||
string username = default;
|
||||
await _instance.UpdateUserAsync(user, username);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
@@ -57,12 +56,12 @@ namespace Org.OpenAPITools.Test.Model
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'MapProperty'
|
||||
/// Test the property 'EmptyMap'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void MapPropertyTest()
|
||||
public void EmptyMapTest()
|
||||
{
|
||||
// TODO unit test for the property 'MapProperty'
|
||||
// TODO unit test for the property 'EmptyMap'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'MapOfMapProperty'
|
||||
@@ -73,12 +72,12 @@ namespace Org.OpenAPITools.Test.Model
|
||||
// TODO unit test for the property 'MapOfMapProperty'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Anytype1'
|
||||
/// Test the property 'MapProperty'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void Anytype1Test()
|
||||
public void MapPropertyTest()
|
||||
{
|
||||
// TODO unit test for the property 'Anytype1'
|
||||
// TODO unit test for the property 'MapProperty'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'MapWithUndeclaredPropertiesAnytype1'
|
||||
@@ -105,14 +104,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
// TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype3'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'EmptyMap'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void EmptyMapTest()
|
||||
{
|
||||
// TODO unit test for the property 'EmptyMap'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'MapWithUndeclaredPropertiesString'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
@@ -120,6 +111,14 @@ namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
// TODO unit test for the property 'MapWithUndeclaredPropertiesString'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Anytype1'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void Anytype1Test()
|
||||
{
|
||||
// TODO unit test for the property 'Anytype1'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
@@ -65,14 +64,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
// TODO unit test for the property 'Code'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Type'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void TypeTest()
|
||||
{
|
||||
// TODO unit test for the property 'Type'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Message'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
@@ -80,6 +71,14 @@ namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
// TODO unit test for the property 'Message'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Type'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void TypeTest()
|
||||
{
|
||||
// TODO unit test for the property 'Type'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
@@ -56,14 +55,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ArrayOfString'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ArrayOfStringTest()
|
||||
{
|
||||
// TODO unit test for the property 'ArrayOfString'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'ArrayArrayOfInteger'
|
||||
/// </summary>
|
||||
@@ -80,6 +71,14 @@ namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
// TODO unit test for the property 'ArrayArrayOfModel'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'ArrayOfString'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ArrayOfStringTest()
|
||||
{
|
||||
// TODO unit test for the property 'ArrayOfString'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
@@ -57,12 +56,12 @@ namespace Org.OpenAPITools.Test.Model
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'SmallCamel'
|
||||
/// Test the property 'ATT_NAME'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void SmallCamelTest()
|
||||
public void ATT_NAMETest()
|
||||
{
|
||||
// TODO unit test for the property 'SmallCamel'
|
||||
// TODO unit test for the property 'ATT_NAME'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'CapitalCamel'
|
||||
@@ -73,14 +72,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
// TODO unit test for the property 'CapitalCamel'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'SmallSnake'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void SmallSnakeTest()
|
||||
{
|
||||
// TODO unit test for the property 'SmallSnake'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'CapitalSnake'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
@@ -97,12 +88,20 @@ namespace Org.OpenAPITools.Test.Model
|
||||
// TODO unit test for the property 'SCAETHFlowPoints'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'ATT_NAME'
|
||||
/// Test the property 'SmallCamel'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ATT_NAMETest()
|
||||
public void SmallCamelTest()
|
||||
{
|
||||
// TODO unit test for the property 'ATT_NAME'
|
||||
// TODO unit test for the property 'SmallCamel'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'SmallSnake'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void SmallSnakeTest()
|
||||
{
|
||||
// TODO unit test for the property 'SmallSnake'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
@@ -56,14 +55,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Name'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void NameTest()
|
||||
{
|
||||
// TODO unit test for the property 'Name'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Id'
|
||||
/// </summary>
|
||||
@@ -72,6 +63,14 @@ namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
// TODO unit test for the property 'Id'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Name'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void NameTest()
|
||||
{
|
||||
// TODO unit test for the property 'Name'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
@@ -57,12 +56,12 @@ namespace Org.OpenAPITools.Test.Model
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Class'
|
||||
/// Test the property 'ClassProperty'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ClassTest()
|
||||
public void ClassPropertyTest()
|
||||
{
|
||||
// TODO unit test for the property 'Class'
|
||||
// TODO unit test for the property 'ClassProperty'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
@@ -73,14 +72,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
// TODO unit test for the property 'ShapeOrNull'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'NullableShape'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void NullableShapeTest()
|
||||
{
|
||||
// TODO unit test for the property 'NullableShape'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Shapes'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
@@ -88,6 +79,14 @@ namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
// TODO unit test for the property 'Shapes'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'NullableShape'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void NullableShapeTest()
|
||||
{
|
||||
// TODO unit test for the property 'NullableShape'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
@@ -56,14 +55,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'JustSymbol'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void JustSymbolTest()
|
||||
{
|
||||
// TODO unit test for the property 'JustSymbol'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'ArrayEnum'
|
||||
/// </summary>
|
||||
@@ -72,6 +63,14 @@ namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
// TODO unit test for the property 'ArrayEnum'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'JustSymbol'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void JustSymbolTest()
|
||||
{
|
||||
// TODO unit test for the property 'JustSymbol'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
@@ -56,22 +55,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'EnumStringRequired'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void EnumStringRequiredTest()
|
||||
{
|
||||
// TODO unit test for the property 'EnumStringRequired'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'EnumString'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void EnumStringTest()
|
||||
{
|
||||
// TODO unit test for the property 'EnumString'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'EnumInteger'
|
||||
/// </summary>
|
||||
@@ -97,20 +80,20 @@ namespace Org.OpenAPITools.Test.Model
|
||||
// TODO unit test for the property 'EnumNumber'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'OuterEnum'
|
||||
/// Test the property 'EnumString'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void OuterEnumTest()
|
||||
public void EnumStringTest()
|
||||
{
|
||||
// TODO unit test for the property 'OuterEnum'
|
||||
// TODO unit test for the property 'EnumString'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'OuterEnumInteger'
|
||||
/// Test the property 'EnumStringRequired'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void OuterEnumIntegerTest()
|
||||
public void EnumStringRequiredTest()
|
||||
{
|
||||
// TODO unit test for the property 'OuterEnumInteger'
|
||||
// TODO unit test for the property 'EnumStringRequired'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'OuterEnumDefaultValue'
|
||||
@@ -121,6 +104,14 @@ namespace Org.OpenAPITools.Test.Model
|
||||
// TODO unit test for the property 'OuterEnumDefaultValue'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'OuterEnumInteger'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void OuterEnumIntegerTest()
|
||||
{
|
||||
// TODO unit test for the property 'OuterEnumInteger'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'OuterEnumIntegerDefaultValue'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
@@ -128,6 +119,14 @@ namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
// TODO unit test for the property 'OuterEnumIntegerDefaultValue'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'OuterEnum'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void OuterEnumTest()
|
||||
{
|
||||
// TODO unit test for the property 'OuterEnum'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
@@ -57,12 +56,12 @@ namespace Org.OpenAPITools.Test.Model
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'String'
|
||||
/// Test the property 'StringProperty'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void StringTest()
|
||||
public void StringPropertyTest()
|
||||
{
|
||||
// TODO unit test for the property 'String'
|
||||
// TODO unit test for the property 'StringProperty'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
@@ -57,20 +56,20 @@ namespace Org.OpenAPITools.Test.Model
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Number'
|
||||
/// Test the property 'Binary'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void NumberTest()
|
||||
public void BinaryTest()
|
||||
{
|
||||
// TODO unit test for the property 'Number'
|
||||
// TODO unit test for the property 'Binary'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Byte'
|
||||
/// Test the property 'ByteProperty'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ByteTest()
|
||||
public void BytePropertyTest()
|
||||
{
|
||||
// TODO unit test for the property 'Byte'
|
||||
// TODO unit test for the property 'ByteProperty'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Date'
|
||||
@@ -81,20 +80,36 @@ namespace Org.OpenAPITools.Test.Model
|
||||
// TODO unit test for the property 'Date'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Password'
|
||||
/// Test the property 'DateTime'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void PasswordTest()
|
||||
public void DateTimeTest()
|
||||
{
|
||||
// TODO unit test for the property 'Password'
|
||||
// TODO unit test for the property 'DateTime'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Integer'
|
||||
/// Test the property 'DecimalProperty'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void IntegerTest()
|
||||
public void DecimalPropertyTest()
|
||||
{
|
||||
// TODO unit test for the property 'Integer'
|
||||
// TODO unit test for the property 'DecimalProperty'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'DoubleProperty'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void DoublePropertyTest()
|
||||
{
|
||||
// TODO unit test for the property 'DoubleProperty'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'FloatProperty'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void FloatPropertyTest()
|
||||
{
|
||||
// TODO unit test for the property 'FloatProperty'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Int32'
|
||||
@@ -113,60 +128,28 @@ namespace Org.OpenAPITools.Test.Model
|
||||
// TODO unit test for the property 'Int64'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Float'
|
||||
/// Test the property 'Integer'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void FloatTest()
|
||||
public void IntegerTest()
|
||||
{
|
||||
// TODO unit test for the property 'Float'
|
||||
// TODO unit test for the property 'Integer'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Double'
|
||||
/// Test the property 'Number'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void DoubleTest()
|
||||
public void NumberTest()
|
||||
{
|
||||
// TODO unit test for the property 'Double'
|
||||
// TODO unit test for the property 'Number'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Decimal'
|
||||
/// Test the property 'Password'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void DecimalTest()
|
||||
public void PasswordTest()
|
||||
{
|
||||
// TODO unit test for the property 'Decimal'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'String'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void StringTest()
|
||||
{
|
||||
// TODO unit test for the property 'String'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Binary'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void BinaryTest()
|
||||
{
|
||||
// TODO unit test for the property 'Binary'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'DateTime'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void DateTimeTest()
|
||||
{
|
||||
// TODO unit test for the property 'DateTime'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Uuid'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void UuidTest()
|
||||
{
|
||||
// TODO unit test for the property 'Uuid'
|
||||
// TODO unit test for the property 'Password'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'PatternWithDigits'
|
||||
@@ -184,6 +167,22 @@ namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
// TODO unit test for the property 'PatternWithDigitsAndDelimiter'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'StringProperty'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void StringPropertyTest()
|
||||
{
|
||||
// TODO unit test for the property 'StringProperty'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Uuid'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void UuidTest()
|
||||
{
|
||||
// TODO unit test for the property 'Uuid'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
@@ -56,22 +55,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'MapMapOfString'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void MapMapOfStringTest()
|
||||
{
|
||||
// TODO unit test for the property 'MapMapOfString'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'MapOfEnumString'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void MapOfEnumStringTest()
|
||||
{
|
||||
// TODO unit test for the property 'MapOfEnumString'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'DirectMap'
|
||||
/// </summary>
|
||||
@@ -88,6 +71,22 @@ namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
// TODO unit test for the property 'IndirectMap'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'MapMapOfString'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void MapMapOfStringTest()
|
||||
{
|
||||
// TODO unit test for the property 'MapMapOfString'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'MapOfEnumString'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void MapOfEnumStringTest()
|
||||
{
|
||||
// TODO unit test for the property 'MapOfEnumString'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
@@ -56,14 +55,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Uuid'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void UuidTest()
|
||||
{
|
||||
// TODO unit test for the property 'Uuid'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'DateTime'
|
||||
/// </summary>
|
||||
@@ -80,6 +71,14 @@ namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
// TODO unit test for the property 'Map'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Uuid'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void UuidTest()
|
||||
{
|
||||
// TODO unit test for the property 'Uuid'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
@@ -56,6 +55,14 @@ namespace Org.OpenAPITools.Test.Model
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ClassProperty'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ClassPropertyTest()
|
||||
{
|
||||
// TODO unit test for the property 'ClassProperty'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Name'
|
||||
/// </summary>
|
||||
@@ -64,14 +71,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
// TODO unit test for the property 'Name'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Class'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ClassTest()
|
||||
{
|
||||
// TODO unit test for the property 'Class'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
@@ -57,12 +56,12 @@ namespace Org.OpenAPITools.Test.Model
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property '_Client'
|
||||
/// Test the property '_ClientProperty'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void _ClientTest()
|
||||
public void _ClientPropertyTest()
|
||||
{
|
||||
// TODO unit test for the property '_Client'
|
||||
// TODO unit test for the property '_ClientProperty'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
@@ -65,14 +64,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
// TODO unit test for the property 'NameProperty'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'SnakeCase'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void SnakeCaseTest()
|
||||
{
|
||||
// TODO unit test for the property 'SnakeCase'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Property'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
@@ -81,6 +72,14 @@ namespace Org.OpenAPITools.Test.Model
|
||||
// TODO unit test for the property 'Property'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'SnakeCase'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void SnakeCaseTest()
|
||||
{
|
||||
// TODO unit test for the property 'SnakeCase'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property '_123Number'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
@@ -57,20 +56,36 @@ namespace Org.OpenAPITools.Test.Model
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'IntegerProp'
|
||||
/// Test the property 'ArrayItemsNullable'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void IntegerPropTest()
|
||||
public void ArrayItemsNullableTest()
|
||||
{
|
||||
// TODO unit test for the property 'IntegerProp'
|
||||
// TODO unit test for the property 'ArrayItemsNullable'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'NumberProp'
|
||||
/// Test the property 'ObjectItemsNullable'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void NumberPropTest()
|
||||
public void ObjectItemsNullableTest()
|
||||
{
|
||||
// TODO unit test for the property 'NumberProp'
|
||||
// TODO unit test for the property 'ObjectItemsNullable'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'ArrayAndItemsNullableProp'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ArrayAndItemsNullablePropTest()
|
||||
{
|
||||
// TODO unit test for the property 'ArrayAndItemsNullableProp'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'ArrayNullableProp'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ArrayNullablePropTest()
|
||||
{
|
||||
// TODO unit test for the property 'ArrayNullableProp'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'BooleanProp'
|
||||
@@ -81,14 +96,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
// TODO unit test for the property 'BooleanProp'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'StringProp'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void StringPropTest()
|
||||
{
|
||||
// TODO unit test for the property 'StringProp'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'DateProp'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
@@ -105,36 +112,20 @@ namespace Org.OpenAPITools.Test.Model
|
||||
// TODO unit test for the property 'DatetimeProp'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'ArrayNullableProp'
|
||||
/// Test the property 'IntegerProp'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ArrayNullablePropTest()
|
||||
public void IntegerPropTest()
|
||||
{
|
||||
// TODO unit test for the property 'ArrayNullableProp'
|
||||
// TODO unit test for the property 'IntegerProp'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'ArrayAndItemsNullableProp'
|
||||
/// Test the property 'NumberProp'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ArrayAndItemsNullablePropTest()
|
||||
public void NumberPropTest()
|
||||
{
|
||||
// TODO unit test for the property 'ArrayAndItemsNullableProp'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'ArrayItemsNullable'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ArrayItemsNullableTest()
|
||||
{
|
||||
// TODO unit test for the property 'ArrayItemsNullable'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'ObjectNullableProp'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ObjectNullablePropTest()
|
||||
{
|
||||
// TODO unit test for the property 'ObjectNullableProp'
|
||||
// TODO unit test for the property 'NumberProp'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'ObjectAndItemsNullableProp'
|
||||
@@ -145,12 +136,20 @@ namespace Org.OpenAPITools.Test.Model
|
||||
// TODO unit test for the property 'ObjectAndItemsNullableProp'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'ObjectItemsNullable'
|
||||
/// Test the property 'ObjectNullableProp'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ObjectItemsNullableTest()
|
||||
public void ObjectNullablePropTest()
|
||||
{
|
||||
// TODO unit test for the property 'ObjectItemsNullable'
|
||||
// TODO unit test for the property 'ObjectNullableProp'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'StringProp'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void StringPropTest()
|
||||
{
|
||||
// TODO unit test for the property 'StringProp'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
@@ -57,20 +56,12 @@ namespace Org.OpenAPITools.Test.Model
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Uuid'
|
||||
/// Test the property 'Bars'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void UuidTest()
|
||||
public void BarsTest()
|
||||
{
|
||||
// TODO unit test for the property 'Uuid'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Id'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void IdTest()
|
||||
{
|
||||
// TODO unit test for the property 'Id'
|
||||
// TODO unit test for the property 'Bars'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'DeprecatedRef'
|
||||
@@ -81,12 +72,20 @@ namespace Org.OpenAPITools.Test.Model
|
||||
// TODO unit test for the property 'DeprecatedRef'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Bars'
|
||||
/// Test the property 'Id'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void BarsTest()
|
||||
public void IdTest()
|
||||
{
|
||||
// TODO unit test for the property 'Bars'
|
||||
// TODO unit test for the property 'Id'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Uuid'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void UuidTest()
|
||||
{
|
||||
// TODO unit test for the property 'Uuid'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
@@ -56,6 +55,14 @@ namespace Org.OpenAPITools.Test.Model
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'MyBoolean'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void MyBooleanTest()
|
||||
{
|
||||
// TODO unit test for the property 'MyBoolean'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'MyNumber'
|
||||
/// </summary>
|
||||
@@ -72,14 +79,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
// TODO unit test for the property 'MyString'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'MyBoolean'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void MyBooleanTest()
|
||||
{
|
||||
// TODO unit test for the property 'MyBoolean'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
@@ -56,6 +55,22 @@ namespace Org.OpenAPITools.Test.Model
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Category'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void CategoryTest()
|
||||
{
|
||||
// TODO unit test for the property 'Category'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Id'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void IdTest()
|
||||
{
|
||||
// TODO unit test for the property 'Id'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Name'
|
||||
/// </summary>
|
||||
@@ -73,20 +88,12 @@ namespace Org.OpenAPITools.Test.Model
|
||||
// TODO unit test for the property 'PhotoUrls'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Id'
|
||||
/// Test the property 'Status'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void IdTest()
|
||||
public void StatusTest()
|
||||
{
|
||||
// TODO unit test for the property 'Id'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Category'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void CategoryTest()
|
||||
{
|
||||
// TODO unit test for the property 'Category'
|
||||
// TODO unit test for the property 'Status'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Tags'
|
||||
@@ -96,14 +103,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
// TODO unit test for the property 'Tags'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Status'
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void StatusTest()
|
||||
{
|
||||
// TODO unit test for the property 'Status'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ using Org.OpenAPITools.Api;
|
||||
using Org.OpenAPITools.Model;
|
||||
using Org.OpenAPITools.Client;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user