diff --git a/bin/configs/csharp-netcore-complex-files.yaml b/bin/configs/csharp-netcore-complex-files.yaml
new file mode 100644
index 00000000000..b67cece1ad1
--- /dev/null
+++ b/bin/configs/csharp-netcore-complex-files.yaml
@@ -0,0 +1,10 @@
+generatorName: csharp-netcore
+outputDir: samples/client/others/csharp-netcore-complex-files
+inputSpec: modules/openapi-generator/src/test/resources/3_0/form-multipart-binary-array.yaml
+templateDir: modules/openapi-generator/src/main/resources/csharp-netcore
+additionalProperties:
+ packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
+ targetFramework: netstandard2.0
+ useCompareNetObjects: "true"
+globalProperties:
+ skipFormModel: "false"
diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/api.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/api.mustache
index 237a14f92b7..86ea63f978e 100644
--- a/modules/openapi-generator/src/main/resources/csharp-netcore/api.mustache
+++ b/modules/openapi-generator/src/main/resources/csharp-netcore/api.mustache
@@ -344,7 +344,14 @@ namespace {{packageName}}.{{apiPackage}}
{{#formParams}}
{{#required}}
{{#isFile}}
+ {{#isArray}}
+ foreach (var file in {{paramName}}) {
+ localVarRequestOptions.FileParameters.Add("{{baseName}}", file);
+ }
+ {{/isArray}}
+ {{^isArray}}
localVarRequestOptions.FileParameters.Add("{{baseName}}", {{paramName}});
+ {{/isArray}}
{{/isFile}}
{{^isFile}}
localVarRequestOptions.FormParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // form parameter
@@ -354,7 +361,14 @@ namespace {{packageName}}.{{apiPackage}}
if ({{paramName}} != null)
{
{{#isFile}}
+ {{#isArray}}
+ foreach (var file in {{paramName}}) {
+ localVarRequestOptions.FileParameters.Add("{{baseName}}", file);
+ }
+ {{/isArray}}
+ {{^isArray}}
localVarRequestOptions.FileParameters.Add("{{baseName}}", {{paramName}});
+ {{/isArray}}
{{/isFile}}
{{^isFile}}
localVarRequestOptions.FormParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // form parameter
@@ -543,7 +557,14 @@ namespace {{packageName}}.{{apiPackage}}
{{#formParams}}
{{#required}}
{{#isFile}}
+ {{#isArray}}
+ foreach (var file in {{paramName}}) {
+ localVarRequestOptions.FileParameters.Add("{{baseName}}", file);
+ }
+ {{/isArray}}
+ {{^isArray}}
localVarRequestOptions.FileParameters.Add("{{baseName}}", {{paramName}});
+ {{/isArray}}
{{/isFile}}
{{^isFile}}
localVarRequestOptions.FormParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // form parameter
@@ -553,7 +574,14 @@ namespace {{packageName}}.{{apiPackage}}
if ({{paramName}} != null)
{
{{#isFile}}
+ {{#isArray}}
+ foreach (var file in {{paramName}}) {
+ localVarRequestOptions.FileParameters.Add("{{baseName}}", file);
+ }
+ {{/isArray}}
+ {{^isArray}}
localVarRequestOptions.FileParameters.Add("{{baseName}}", {{paramName}});
+ {{/isArray}}
{{/isFile}}
{{^isFile}}
localVarRequestOptions.FormParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // form parameter
diff --git a/samples/client/others/csharp-netcore-complex-files/.gitignore b/samples/client/others/csharp-netcore-complex-files/.gitignore
new file mode 100644
index 00000000000..1ee53850b84
--- /dev/null
+++ b/samples/client/others/csharp-netcore-complex-files/.gitignore
@@ -0,0 +1,362 @@
+## Ignore Visual Studio temporary files, build results, and
+## files generated by popular Visual Studio add-ons.
+##
+## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
+
+# User-specific files
+*.rsuser
+*.suo
+*.user
+*.userosscache
+*.sln.docstates
+
+# User-specific files (MonoDevelop/Xamarin Studio)
+*.userprefs
+
+# Mono auto generated files
+mono_crash.*
+
+# Build results
+[Dd]ebug/
+[Dd]ebugPublic/
+[Rr]elease/
+[Rr]eleases/
+x64/
+x86/
+[Ww][Ii][Nn]32/
+[Aa][Rr][Mm]/
+[Aa][Rr][Mm]64/
+bld/
+[Bb]in/
+[Oo]bj/
+[Ll]og/
+[Ll]ogs/
+
+# Visual Studio 2015/2017 cache/options directory
+.vs/
+# Uncomment if you have tasks that create the project's static files in wwwroot
+#wwwroot/
+
+# Visual Studio 2017 auto generated files
+Generated\ Files/
+
+# MSTest test Results
+[Tt]est[Rr]esult*/
+[Bb]uild[Ll]og.*
+
+# NUnit
+*.VisualState.xml
+TestResult.xml
+nunit-*.xml
+
+# Build Results of an ATL Project
+[Dd]ebugPS/
+[Rr]eleasePS/
+dlldata.c
+
+# Benchmark Results
+BenchmarkDotNet.Artifacts/
+
+# .NET Core
+project.lock.json
+project.fragment.lock.json
+artifacts/
+
+# ASP.NET Scaffolding
+ScaffoldingReadMe.txt
+
+# StyleCop
+StyleCopReport.xml
+
+# Files built by Visual Studio
+*_i.c
+*_p.c
+*_h.h
+*.ilk
+*.meta
+*.obj
+*.iobj
+*.pch
+*.pdb
+*.ipdb
+*.pgc
+*.pgd
+*.rsp
+*.sbr
+*.tlb
+*.tli
+*.tlh
+*.tmp
+*.tmp_proj
+*_wpftmp.csproj
+*.log
+*.vspscc
+*.vssscc
+.builds
+*.pidb
+*.svclog
+*.scc
+
+# Chutzpah Test files
+_Chutzpah*
+
+# Visual C++ cache files
+ipch/
+*.aps
+*.ncb
+*.opendb
+*.opensdf
+*.sdf
+*.cachefile
+*.VC.db
+*.VC.VC.opendb
+
+# Visual Studio profiler
+*.psess
+*.vsp
+*.vspx
+*.sap
+
+# Visual Studio Trace Files
+*.e2e
+
+# TFS 2012 Local Workspace
+$tf/
+
+# Guidance Automation Toolkit
+*.gpState
+
+# ReSharper is a .NET coding add-in
+_ReSharper*/
+*.[Rr]e[Ss]harper
+*.DotSettings.user
+
+# TeamCity is a build add-in
+_TeamCity*
+
+# DotCover is a Code Coverage Tool
+*.dotCover
+
+# AxoCover is a Code Coverage Tool
+.axoCover/*
+!.axoCover/settings.json
+
+# Coverlet is a free, cross platform Code Coverage Tool
+coverage*.json
+coverage*.xml
+coverage*.info
+
+# Visual Studio code coverage results
+*.coverage
+*.coveragexml
+
+# NCrunch
+_NCrunch_*
+.*crunch*.local.xml
+nCrunchTemp_*
+
+# MightyMoose
+*.mm.*
+AutoTest.Net/
+
+# Web workbench (sass)
+.sass-cache/
+
+# Installshield output folder
+[Ee]xpress/
+
+# DocProject is a documentation generator add-in
+DocProject/buildhelp/
+DocProject/Help/*.HxT
+DocProject/Help/*.HxC
+DocProject/Help/*.hhc
+DocProject/Help/*.hhk
+DocProject/Help/*.hhp
+DocProject/Help/Html2
+DocProject/Help/html
+
+# Click-Once directory
+publish/
+
+# Publish Web Output
+*.[Pp]ublish.xml
+*.azurePubxml
+# Note: Comment the next line if you want to checkin your web deploy settings,
+# but database connection strings (with potential passwords) will be unencrypted
+*.pubxml
+*.publishproj
+
+# Microsoft Azure Web App publish settings. Comment the next line if you want to
+# checkin your Azure Web App publish settings, but sensitive information contained
+# in these scripts will be unencrypted
+PublishScripts/
+
+# NuGet Packages
+*.nupkg
+# NuGet Symbol Packages
+*.snupkg
+# The packages folder can be ignored because of Package Restore
+**/[Pp]ackages/*
+# except build/, which is used as an MSBuild target.
+!**/[Pp]ackages/build/
+# Uncomment if necessary however generally it will be regenerated when needed
+#!**/[Pp]ackages/repositories.config
+# NuGet v3's project.json files produces more ignorable files
+*.nuget.props
+*.nuget.targets
+
+# Microsoft Azure Build Output
+csx/
+*.build.csdef
+
+# Microsoft Azure Emulator
+ecf/
+rcf/
+
+# Windows Store app package directories and files
+AppPackages/
+BundleArtifacts/
+Package.StoreAssociation.xml
+_pkginfo.txt
+*.appx
+*.appxbundle
+*.appxupload
+
+# Visual Studio cache files
+# files ending in .cache can be ignored
+*.[Cc]ache
+# but keep track of directories ending in .cache
+!?*.[Cc]ache/
+
+# Others
+ClientBin/
+~$*
+*~
+*.dbmdl
+*.dbproj.schemaview
+*.jfm
+*.pfx
+*.publishsettings
+orleans.codegen.cs
+
+# Including strong name files can present a security risk
+# (https://github.com/github/gitignore/pull/2483#issue-259490424)
+#*.snk
+
+# Since there are multiple workflows, uncomment next line to ignore bower_components
+# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
+#bower_components/
+
+# RIA/Silverlight projects
+Generated_Code/
+
+# Backup & report files from converting an old project file
+# to a newer Visual Studio version. Backup files are not needed,
+# because we have git ;-)
+_UpgradeReport_Files/
+Backup*/
+UpgradeLog*.XML
+UpgradeLog*.htm
+ServiceFabricBackup/
+*.rptproj.bak
+
+# SQL Server files
+*.mdf
+*.ldf
+*.ndf
+
+# Business Intelligence projects
+*.rdl.data
+*.bim.layout
+*.bim_*.settings
+*.rptproj.rsuser
+*- [Bb]ackup.rdl
+*- [Bb]ackup ([0-9]).rdl
+*- [Bb]ackup ([0-9][0-9]).rdl
+
+# Microsoft Fakes
+FakesAssemblies/
+
+# GhostDoc plugin setting file
+*.GhostDoc.xml
+
+# Node.js Tools for Visual Studio
+.ntvs_analysis.dat
+node_modules/
+
+# Visual Studio 6 build log
+*.plg
+
+# Visual Studio 6 workspace options file
+*.opt
+
+# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
+*.vbw
+
+# Visual Studio LightSwitch build output
+**/*.HTMLClient/GeneratedArtifacts
+**/*.DesktopClient/GeneratedArtifacts
+**/*.DesktopClient/ModelManifest.xml
+**/*.Server/GeneratedArtifacts
+**/*.Server/ModelManifest.xml
+_Pvt_Extensions
+
+# Paket dependency manager
+.paket/paket.exe
+paket-files/
+
+# FAKE - F# Make
+.fake/
+
+# CodeRush personal settings
+.cr/personal
+
+# Python Tools for Visual Studio (PTVS)
+__pycache__/
+*.pyc
+
+# Cake - Uncomment if you are using it
+# tools/**
+# !tools/packages.config
+
+# Tabs Studio
+*.tss
+
+# Telerik's JustMock configuration file
+*.jmconfig
+
+# BizTalk build output
+*.btp.cs
+*.btm.cs
+*.odx.cs
+*.xsd.cs
+
+# OpenCover UI analysis results
+OpenCover/
+
+# Azure Stream Analytics local run output
+ASALocalRun/
+
+# MSBuild Binary and Structured Log
+*.binlog
+
+# NVidia Nsight GPU debugger configuration file
+*.nvuser
+
+# MFractors (Xamarin productivity tool) working folder
+.mfractor/
+
+# Local History for Visual Studio
+.localhistory/
+
+# BeatPulse healthcheck temp database
+healthchecksdb
+
+# Backup folder for Package Reference Convert tool in Visual Studio 2017
+MigrationBackup/
+
+# Ionide (cross platform F# VS Code tools) working folder
+.ionide/
+
+# Fody - auto-generated XML schema
+FodyWeavers.xsd
diff --git a/samples/client/others/csharp-netcore-complex-files/.openapi-generator-ignore b/samples/client/others/csharp-netcore-complex-files/.openapi-generator-ignore
new file mode 100644
index 00000000000..7484ee590a3
--- /dev/null
+++ b/samples/client/others/csharp-netcore-complex-files/.openapi-generator-ignore
@@ -0,0 +1,23 @@
+# OpenAPI Generator Ignore
+# Generated by openapi-generator https://github.com/openapitools/openapi-generator
+
+# Use this file to prevent files from being overwritten by the generator.
+# The patterns follow closely to .gitignore or .dockerignore.
+
+# As an example, the C# client generator defines ApiClient.cs.
+# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
+#ApiClient.cs
+
+# You can match any string of characters against a directory, file or extension with a single asterisk (*):
+#foo/*/qux
+# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
+
+# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
+#foo/**/qux
+# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
+
+# You can also negate patterns with an exclamation (!).
+# For example, you can ignore all files in a docs folder with the file extension .md:
+#docs/*.md
+# Then explicitly reverse the ignore rule for a single file:
+#!docs/README.md
diff --git a/samples/client/others/csharp-netcore-complex-files/.openapi-generator/FILES b/samples/client/others/csharp-netcore-complex-files/.openapi-generator/FILES
new file mode 100644
index 00000000000..7b45db0b8dd
--- /dev/null
+++ b/samples/client/others/csharp-netcore-complex-files/.openapi-generator/FILES
@@ -0,0 +1,40 @@
+.gitignore
+.openapi-generator-ignore
+Org.OpenAPITools.sln
+README.md
+appveyor.yml
+docs/InlineObject.md
+docs/InlineObject1.md
+docs/InlineObject2.md
+docs/MultipartApi.md
+docs/MultipartMixedMarker.md
+git_push.sh
+src/Org.OpenAPITools.Test/Api/MultipartApiTests.cs
+src/Org.OpenAPITools.Test/Model/InlineObject1Tests.cs
+src/Org.OpenAPITools.Test/Model/InlineObject2Tests.cs
+src/Org.OpenAPITools.Test/Model/InlineObjectTests.cs
+src/Org.OpenAPITools.Test/Model/MultipartMixedMarkerTests.cs
+src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj
+src/Org.OpenAPITools/Api/MultipartApi.cs
+src/Org.OpenAPITools/Client/ApiClient.cs
+src/Org.OpenAPITools/Client/ApiException.cs
+src/Org.OpenAPITools/Client/ApiResponse.cs
+src/Org.OpenAPITools/Client/ClientUtils.cs
+src/Org.OpenAPITools/Client/Configuration.cs
+src/Org.OpenAPITools/Client/ExceptionFactory.cs
+src/Org.OpenAPITools/Client/GlobalConfiguration.cs
+src/Org.OpenAPITools/Client/HttpMethod.cs
+src/Org.OpenAPITools/Client/IApiAccessor.cs
+src/Org.OpenAPITools/Client/IAsynchronousClient.cs
+src/Org.OpenAPITools/Client/IReadableConfiguration.cs
+src/Org.OpenAPITools/Client/ISynchronousClient.cs
+src/Org.OpenAPITools/Client/Multimap.cs
+src/Org.OpenAPITools/Client/OpenAPIDateConverter.cs
+src/Org.OpenAPITools/Client/RequestOptions.cs
+src/Org.OpenAPITools/Client/RetryConfiguration.cs
+src/Org.OpenAPITools/Model/AbstractOpenAPISchema.cs
+src/Org.OpenAPITools/Model/InlineObject.cs
+src/Org.OpenAPITools/Model/InlineObject1.cs
+src/Org.OpenAPITools/Model/InlineObject2.cs
+src/Org.OpenAPITools/Model/MultipartMixedMarker.cs
+src/Org.OpenAPITools/Org.OpenAPITools.csproj
diff --git a/samples/client/others/csharp-netcore-complex-files/.openapi-generator/VERSION b/samples/client/others/csharp-netcore-complex-files/.openapi-generator/VERSION
new file mode 100644
index 00000000000..4077803655c
--- /dev/null
+++ b/samples/client/others/csharp-netcore-complex-files/.openapi-generator/VERSION
@@ -0,0 +1 @@
+5.3.1-SNAPSHOT
\ No newline at end of file
diff --git a/samples/client/others/csharp-netcore-complex-files/Org.OpenAPITools.sln b/samples/client/others/csharp-netcore-complex-files/Org.OpenAPITools.sln
new file mode 100644
index 00000000000..61278f3ea0b
--- /dev/null
+++ b/samples/client/others/csharp-netcore-complex-files/Org.OpenAPITools.sln
@@ -0,0 +1,27 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 14
+VisualStudioVersion = 14.0.25420.1
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Org.OpenAPITools", "src\Org.OpenAPITools\Org.OpenAPITools.csproj", "{321C8C3F-0156-40C1-AE42-D59761FB9B6C}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Org.OpenAPITools.Test", "src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {321C8C3F-0156-40C1-AE42-D59761FB9B6C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {321C8C3F-0156-40C1-AE42-D59761FB9B6C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {321C8C3F-0156-40C1-AE42-D59761FB9B6C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {321C8C3F-0156-40C1-AE42-D59761FB9B6C}.Release|Any CPU.Build.0 = Release|Any CPU
+ {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
\ No newline at end of file
diff --git a/samples/client/others/csharp-netcore-complex-files/README.md b/samples/client/others/csharp-netcore-complex-files/README.md
new file mode 100644
index 00000000000..7b88db28763
--- /dev/null
+++ b/samples/client/others/csharp-netcore-complex-files/README.md
@@ -0,0 +1,121 @@
+# Org.OpenAPITools - the C# library for the MultipartFile test
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
+
+- API version: 1.0.0
+- SDK version: 1.0.0
+- Build package: org.openapitools.codegen.languages.CSharpNetCoreClientCodegen
+
+
+## Frameworks supported
+- .NET Core >=1.0
+- .NET Framework >=4.6
+- Mono/Xamarin >=vNext
+
+
+## Dependencies
+
+- [RestSharp](https://www.nuget.org/packages/RestSharp) - 106.13.0 or later
+- [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 12.0.3 or later
+- [JsonSubTypes](https://www.nuget.org/packages/JsonSubTypes/) - 1.8.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) - 5.0.0 or later
+
+The DLLs included in the package may not be the latest version. We recommend using [NuGet](https://docs.nuget.org/consume/installing-nuget) to obtain the latest version of the packages:
+```
+Install-Package RestSharp
+Install-Package Newtonsoft.Json
+Install-Package JsonSubTypes
+Install-Package System.ComponentModel.Annotations
+Install-Package CompareNETObjects
+```
+
+NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See [RestSharp#742](https://github.com/restsharp/RestSharp/issues/742).
+NOTE: RestSharp for .Net Core creates a new socket for each api call, which can lead to a socket exhaustion problem. See [RestSharp#1406](https://github.com/restsharp/RestSharp/issues/1406).
+
+
+## Installation
+Generate the DLL using your preferred tool (e.g. `dotnet build`)
+
+Then include the DLL (under the `bin` folder) in the C# project, and use the namespaces:
+```csharp
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+```
+
+## Usage
+
+To use the API client with a HTTP proxy, setup a `System.Net.WebProxy`
+```csharp
+Configuration c = new Configuration();
+System.Net.WebProxy webProxy = new System.Net.WebProxy("http://myProxyUrl:80/");
+webProxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
+c.Proxy = webProxy;
+```
+
+
+## Getting Started
+
+```csharp
+using System.Collections.Generic;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class Example
+ {
+ public static void Main()
+ {
+
+ Configuration config = new Configuration();
+ config.BasePath = "http://localhost";
+ var apiInstance = new MultipartApi(config);
+ var files = new List(); // List | Many files (optional)
+
+ try
+ {
+ apiInstance.MultipartArray(files);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling MultipartApi.MultipartArray: " + e.Message );
+ Debug.Print("Status Code: "+ e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+
+ }
+ }
+}
+```
+
+
+## Documentation for API Endpoints
+
+All URIs are relative to *http://localhost*
+
+Class | Method | HTTP request | Description
+------------ | ------------- | ------------- | -------------
+*MultipartApi* | [**MultipartArray**](docs/MultipartApi.md#multipartarray) | **POST** /multipart-array |
+*MultipartApi* | [**MultipartMixed**](docs/MultipartApi.md#multipartmixed) | **POST** /multipart-mixed |
+*MultipartApi* | [**MultipartSingle**](docs/MultipartApi.md#multipartsingle) | **POST** /multipart-single |
+
+
+
+## Documentation for Models
+
+ - [Model.InlineObject](docs/InlineObject.md)
+ - [Model.InlineObject1](docs/InlineObject1.md)
+ - [Model.InlineObject2](docs/InlineObject2.md)
+ - [Model.MultipartMixedMarker](docs/MultipartMixedMarker.md)
+
+
+
+## Documentation for Authorization
+
+All endpoints do not require authorization.
diff --git a/samples/client/others/csharp-netcore-complex-files/appveyor.yml b/samples/client/others/csharp-netcore-complex-files/appveyor.yml
new file mode 100644
index 00000000000..f76f63cee50
--- /dev/null
+++ b/samples/client/others/csharp-netcore-complex-files/appveyor.yml
@@ -0,0 +1,9 @@
+# auto-generated by OpenAPI Generator (https://github.com/OpenAPITools/openapi-generator)
+#
+image: Visual Studio 2019
+clone_depth: 1
+build_script:
+- dotnet build -c Release
+- dotnet test -c Release
+after_build:
+- dotnet pack .\src\Org.OpenAPITools\Org.OpenAPITools.csproj -o ../../output -c Release --no-build
diff --git a/samples/client/others/csharp-netcore-complex-files/docs/InlineObject.md b/samples/client/others/csharp-netcore-complex-files/docs/InlineObject.md
new file mode 100644
index 00000000000..6b0d642f078
--- /dev/null
+++ b/samples/client/others/csharp-netcore-complex-files/docs/InlineObject.md
@@ -0,0 +1,10 @@
+# Org.OpenAPITools.Model.InlineObject
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Files** | **List<System.IO.Stream>** | Many files | [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)
+
diff --git a/samples/client/others/csharp-netcore-complex-files/docs/InlineObject1.md b/samples/client/others/csharp-netcore-complex-files/docs/InlineObject1.md
new file mode 100644
index 00000000000..dd54d6fa6a8
--- /dev/null
+++ b/samples/client/others/csharp-netcore-complex-files/docs/InlineObject1.md
@@ -0,0 +1,10 @@
+# Org.OpenAPITools.Model.InlineObject1
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**File** | **System.IO.Stream** | One file | [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)
+
diff --git a/samples/client/others/csharp-netcore-complex-files/docs/InlineObject2.md b/samples/client/others/csharp-netcore-complex-files/docs/InlineObject2.md
new file mode 100644
index 00000000000..ae863de9d31
--- /dev/null
+++ b/samples/client/others/csharp-netcore-complex-files/docs/InlineObject2.md
@@ -0,0 +1,11 @@
+# Org.OpenAPITools.Model.InlineObject2
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Marker** | [**MultipartMixedMarker**](MultipartMixedMarker.md) | | [optional]
+**File** | **System.IO.Stream** | a file |
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/samples/client/others/csharp-netcore-complex-files/docs/MultipartApi.md b/samples/client/others/csharp-netcore-complex-files/docs/MultipartApi.md
new file mode 100644
index 00000000000..dbf9ae08743
--- /dev/null
+++ b/samples/client/others/csharp-netcore-complex-files/docs/MultipartApi.md
@@ -0,0 +1,220 @@
+# Org.OpenAPITools.Api.MultipartApi
+
+All URIs are relative to *http://localhost*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**MultipartArray**](MultipartApi.md#multipartarray) | **POST** /multipart-array |
+[**MultipartMixed**](MultipartApi.md#multipartmixed) | **POST** /multipart-mixed |
+[**MultipartSingle**](MultipartApi.md#multipartsingle) | **POST** /multipart-single |
+
+
+
+# **MultipartArray**
+> void MultipartArray (List files = null)
+
+
+
+MultipartFile array test
+
+### Example
+```csharp
+using System.Collections.Generic;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class MultipartArrayExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://localhost";
+ var apiInstance = new MultipartApi(config);
+ var files = new List(); // List | Many files (optional)
+
+ try
+ {
+ apiInstance.MultipartArray(files);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling MultipartApi.MultipartArray: " + e.Message );
+ Debug.Print("Status Code: "+ e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **files** | **List<System.IO.Stream>**| Many files | [optional]
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: multipart/form-data
+ - **Accept**: Not defined
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **204** | Successful operation | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+
+# **MultipartMixed**
+> void MultipartMixed (System.IO.Stream file, MultipartMixedMarker marker = null)
+
+
+
+Mixed MultipartFile test
+
+### Example
+```csharp
+using System.Collections.Generic;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class MultipartMixedExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://localhost";
+ var apiInstance = new MultipartApi(config);
+ var file = BINARY_DATA_HERE; // System.IO.Stream | a file
+ var marker = new MultipartMixedMarker(); // MultipartMixedMarker | (optional)
+
+ try
+ {
+ apiInstance.MultipartMixed(file, marker);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling MultipartApi.MultipartMixed: " + e.Message );
+ Debug.Print("Status Code: "+ e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **file** | **System.IO.Stream****System.IO.Stream**| a file |
+ **marker** | [**MultipartMixedMarker**](MultipartMixedMarker.md)| | [optional]
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: multipart/form-data
+ - **Accept**: Not defined
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **204** | Successful operation | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+
+# **MultipartSingle**
+> void MultipartSingle (System.IO.Stream file = null)
+
+
+
+Single MultipartFile test
+
+### Example
+```csharp
+using System.Collections.Generic;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class MultipartSingleExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://localhost";
+ var apiInstance = new MultipartApi(config);
+ var file = BINARY_DATA_HERE; // System.IO.Stream | One file (optional)
+
+ try
+ {
+ apiInstance.MultipartSingle(file);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling MultipartApi.MultipartSingle: " + e.Message );
+ Debug.Print("Status Code: "+ e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **file** | **System.IO.Stream****System.IO.Stream**| One file | [optional]
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: multipart/form-data
+ - **Accept**: Not defined
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **204** | Successful operation | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/samples/client/others/csharp-netcore-complex-files/docs/MultipartMixedMarker.md b/samples/client/others/csharp-netcore-complex-files/docs/MultipartMixedMarker.md
new file mode 100644
index 00000000000..025eb119a4a
--- /dev/null
+++ b/samples/client/others/csharp-netcore-complex-files/docs/MultipartMixedMarker.md
@@ -0,0 +1,11 @@
+# Org.OpenAPITools.Model.MultipartMixedMarker
+additional object
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Name** | **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)
+
diff --git a/samples/client/others/csharp-netcore-complex-files/git_push.sh b/samples/client/others/csharp-netcore-complex-files/git_push.sh
new file mode 100644
index 00000000000..f53a75d4fab
--- /dev/null
+++ b/samples/client/others/csharp-netcore-complex-files/git_push.sh
@@ -0,0 +1,57 @@
+#!/bin/sh
+# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
+#
+# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
+
+git_user_id=$1
+git_repo_id=$2
+release_note=$3
+git_host=$4
+
+if [ "$git_host" = "" ]; then
+ git_host="github.com"
+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"
+fi
+
+if [ "$git_user_id" = "" ]; then
+ git_user_id="GIT_USER_ID"
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
+fi
+
+if [ "$git_repo_id" = "" ]; then
+ git_repo_id="GIT_REPO_ID"
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
+fi
+
+if [ "$release_note" = "" ]; then
+ release_note="Minor update"
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
+fi
+
+# Initialize the local directory as a Git repository
+git init
+
+# Adds the files in the local repository and stages them for commit.
+git add .
+
+# Commits the tracked changes and prepares them to be pushed to a remote repository.
+git commit -m "$release_note"
+
+# Sets the new remote
+git_remote=$(git remote)
+if [ "$git_remote" = "" ]; then # git remote not defined
+
+ if [ "$GIT_TOKEN" = "" ]; then
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
+ else
+ git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
+ fi
+
+fi
+
+git pull origin master
+
+# Pushes (Forces) the changes in the local repository up to the remote repository
+echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
+git push origin master 2>&1 | grep -v 'To https'
diff --git a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Api/MultipartApiTests.cs b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Api/MultipartApiTests.cs
new file mode 100644
index 00000000000..f86f020a9c3
--- /dev/null
+++ b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Api/MultipartApiTests.cs
@@ -0,0 +1,91 @@
+/*
+ * MultipartFile test
+ *
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+using System;
+using System.IO;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.Reflection;
+using RestSharp;
+using Xunit;
+
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Api;
+// uncomment below to import models
+//using Org.OpenAPITools.Model;
+
+namespace Org.OpenAPITools.Test.Api
+{
+ ///
+ /// Class for testing MultipartApi
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the API endpoint.
+ ///
+ public class MultipartApiTests : IDisposable
+ {
+ private MultipartApi instance;
+
+ public MultipartApiTests()
+ {
+ instance = new MultipartApi();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of MultipartApi
+ ///
+ [Fact]
+ public void InstanceTest()
+ {
+ // TODO uncomment below to test 'IsType' MultipartApi
+ //Assert.IsType(instance);
+ }
+
+ ///
+ /// Test MultipartArray
+ ///
+ [Fact]
+ public void MultipartArrayTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //List files = null;
+ //instance.MultipartArray(files);
+ }
+
+ ///
+ /// Test MultipartMixed
+ ///
+ [Fact]
+ public void MultipartMixedTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //System.IO.Stream file = null;
+ //MultipartMixedMarker marker = null;
+ //instance.MultipartMixed(file, marker);
+ }
+
+ ///
+ /// Test MultipartSingle
+ ///
+ [Fact]
+ public void MultipartSingleTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //System.IO.Stream file = null;
+ //instance.MultipartSingle(file);
+ }
+ }
+}
diff --git a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Model/InlineObject1Tests.cs b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Model/InlineObject1Tests.cs
new file mode 100644
index 00000000000..9d935ab6651
--- /dev/null
+++ b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Model/InlineObject1Tests.cs
@@ -0,0 +1,70 @@
+/*
+ * MultipartFile test
+ *
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using Xunit;
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Collections.Generic;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Model;
+using Org.OpenAPITools.Client;
+using System.Reflection;
+using Newtonsoft.Json;
+
+namespace Org.OpenAPITools.Test.Model
+{
+ ///
+ /// Class for testing InlineObject1
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class InlineObject1Tests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for InlineObject1
+ //private InlineObject1 instance;
+
+ public InlineObject1Tests()
+ {
+ // TODO uncomment below to create an instance of InlineObject1
+ //instance = new InlineObject1();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of InlineObject1
+ ///
+ [Fact]
+ public void InlineObject1InstanceTest()
+ {
+ // TODO uncomment below to test "IsType" InlineObject1
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'File'
+ ///
+ [Fact]
+ public void FileTest()
+ {
+ // TODO unit test for the property 'File'
+ }
+
+ }
+
+}
diff --git a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Model/InlineObject2Tests.cs b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Model/InlineObject2Tests.cs
new file mode 100644
index 00000000000..bfcd720e7cb
--- /dev/null
+++ b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Model/InlineObject2Tests.cs
@@ -0,0 +1,78 @@
+/*
+ * MultipartFile test
+ *
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using Xunit;
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Collections.Generic;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Model;
+using Org.OpenAPITools.Client;
+using System.Reflection;
+using Newtonsoft.Json;
+
+namespace Org.OpenAPITools.Test.Model
+{
+ ///
+ /// Class for testing InlineObject2
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class InlineObject2Tests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for InlineObject2
+ //private InlineObject2 instance;
+
+ public InlineObject2Tests()
+ {
+ // TODO uncomment below to create an instance of InlineObject2
+ //instance = new InlineObject2();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of InlineObject2
+ ///
+ [Fact]
+ public void InlineObject2InstanceTest()
+ {
+ // TODO uncomment below to test "IsType" InlineObject2
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'Marker'
+ ///
+ [Fact]
+ public void MarkerTest()
+ {
+ // TODO unit test for the property 'Marker'
+ }
+ ///
+ /// Test the property 'File'
+ ///
+ [Fact]
+ public void FileTest()
+ {
+ // TODO unit test for the property 'File'
+ }
+
+ }
+
+}
diff --git a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Model/InlineObjectTests.cs b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Model/InlineObjectTests.cs
new file mode 100644
index 00000000000..92ff59e7e01
--- /dev/null
+++ b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Model/InlineObjectTests.cs
@@ -0,0 +1,70 @@
+/*
+ * MultipartFile test
+ *
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using Xunit;
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Collections.Generic;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Model;
+using Org.OpenAPITools.Client;
+using System.Reflection;
+using Newtonsoft.Json;
+
+namespace Org.OpenAPITools.Test.Model
+{
+ ///
+ /// Class for testing InlineObject
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class InlineObjectTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for InlineObject
+ //private InlineObject instance;
+
+ public InlineObjectTests()
+ {
+ // TODO uncomment below to create an instance of InlineObject
+ //instance = new InlineObject();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of InlineObject
+ ///
+ [Fact]
+ public void InlineObjectInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" InlineObject
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'Files'
+ ///
+ [Fact]
+ public void FilesTest()
+ {
+ // TODO unit test for the property 'Files'
+ }
+
+ }
+
+}
diff --git a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Model/MultipartMixedMarkerTests.cs b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Model/MultipartMixedMarkerTests.cs
new file mode 100644
index 00000000000..b1ac7cf230d
--- /dev/null
+++ b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Model/MultipartMixedMarkerTests.cs
@@ -0,0 +1,70 @@
+/*
+ * MultipartFile test
+ *
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using Xunit;
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Collections.Generic;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Model;
+using Org.OpenAPITools.Client;
+using System.Reflection;
+using Newtonsoft.Json;
+
+namespace Org.OpenAPITools.Test.Model
+{
+ ///
+ /// Class for testing MultipartMixedMarker
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class MultipartMixedMarkerTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for MultipartMixedMarker
+ //private MultipartMixedMarker instance;
+
+ public MultipartMixedMarkerTests()
+ {
+ // TODO uncomment below to create an instance of MultipartMixedMarker
+ //instance = new MultipartMixedMarker();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of MultipartMixedMarker
+ ///
+ [Fact]
+ public void MultipartMixedMarkerInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" MultipartMixedMarker
+ //Assert.IsType(instance);
+ }
+
+
+ ///
+ /// Test the property 'Name'
+ ///
+ [Fact]
+ public void NameTest()
+ {
+ // TODO unit test for the property 'Name'
+ }
+
+ }
+
+}
diff --git a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj
new file mode 100644
index 00000000000..d58f7e14d8d
--- /dev/null
+++ b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj
@@ -0,0 +1,20 @@
+
+
+
+ Org.OpenAPITools.Test
+ Org.OpenAPITools.Test
+ netcoreapp2.0
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Api/MultipartApi.cs b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Api/MultipartApi.cs
new file mode 100644
index 00000000000..30aaf723ab4
--- /dev/null
+++ b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Api/MultipartApi.cs
@@ -0,0 +1,646 @@
+/*
+ * MultipartFile test
+ *
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.Net;
+using System.Net.Mime;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Org.OpenAPITools.Api
+{
+
+ ///
+ /// Represents a collection of functions to interact with the API endpoints
+ ///
+ public interface IMultipartApiSync : IApiAccessor
+ {
+ #region Synchronous Operations
+ ///
+ ///
+ ///
+ ///
+ /// MultipartFile array test
+ ///
+ /// Thrown when fails to make API call
+ /// Many files (optional)
+ ///
+ void MultipartArray(List files = default(List));
+
+ ///
+ ///
+ ///
+ ///
+ /// MultipartFile array test
+ ///
+ /// Thrown when fails to make API call
+ /// Many files (optional)
+ /// ApiResponse of Object(void)
+ ApiResponse