16 Commits

Author SHA1 Message Date
William Cheng
ad3b5f7045
[Inline model resolver] various improvements (#12293)
* better handling of requestbody in the inline resolver

* remove commented code

* better request body naming

* fix unique naming

* minor code format change

* removed additional underscore from names, fix test

* more fixes, update tests

* fix all tests

* undo changes to default codegen

* update samples

* update python tests

* add new files

* update samples
2022-05-10 17:13:57 +08:00
AJ Rice
5441aeca72
[csharp-netcore] Add support for byte[] response deserialization (#12188)
* [csharp-netcore] DX-2532 - Add support for `byte[]` response deserialization

Add support for `byte[]` response type deserialization

* Update Samples and Docs
2022-04-25 12:27:56 +08:00
William Cheng
3e1797fb11
Add operations servers for csharp-netcore (#12090)
* Add the operation associated with each request path

* Populate the request operation with a combination of classname and operation id

* Initialize operation servers dictionary with default values

* Allow passing in the operation index with requests

* Check that the server contains a variables key before iterating

* Generated samples

* Generated samples with latest changes

* Include operations when at least one server exists

* Generate samples with the latest changes

Co-authored-by: Mike Hamer <mhamer@bandwidth.com>
Co-authored-by: Mike Hamer <hamer.mike@gmail.com>
2022-04-09 16:36:21 +08:00
William Cheng
188f37f5a9 Merge branch 'master' of https://github.com/OpenAPITools/openapi-generator 2022-03-06 22:35:33 +08:00
William Cheng
03d4d75431 update C# samples 2022-03-06 22:35:04 +08:00
William Cheng
79872523d6
add tests, better code format (#11814) 2022-03-06 22:34:33 +08:00
Reda
33b89148e5
[JavaSpring] Multipart causing HttpMediaTypeNotSupportedException when parameter is different than File or String (#11449)
* Generate @RequestParam when parameter is not a File

* Fix tests to use @RequestParam

* Enhance testMultipartBoot test case

* Update the Petstore sample

* Add MultipartMixedStatus files

* Use @RequestPart for spring-cloud when param is File

* Generate samples

* Delete spring-cloud formParams.mustache file

* Regenerate samples
2022-02-27 15:07:35 +08:00
William Cheng
2daa7391e0
update polly to newer version 7.2.3 (#11714) 2022-02-25 19:13:37 +08:00
Jason Finch
dbb63dc077
tidy [csharp-netcore]: Remove unused UrlEncode method. Possible breaking change: Method is public so upstream consumer *may* of used it, but library does not. (#11453) 2022-02-07 15:18:24 +08:00
William Cheng
35fea62b3b
[c#][netcore] mark EOL frameworks as deprecated (#11450)
* removed old frameworks from csharp-netcore

* removed another reference and build samples

* updated readme

* deprecated frameworks

* fix test csproj file

* update doc

Co-authored-by: devhl-labs <shawnkanyer@gmail.com>
2022-01-30 02:01:26 +08:00
devhl-labs
24366be0db
[csharp-netcore] Adding generic host library (#10627)
* added generichost library

* added templates

* added an event, improved docs, added logging

* adding event args file

* fixed hard coded package name

* added an AddTokens overload for a single token

* changed api clients to singletons to support the event registration

* build samples

* log exceptions while executing api responded event

* nrt bug fixes, dangling comma fix

* resolving comments

* removed debugging lines

* refactored token provider

* rate limit provider now default

* updated readme, added ConfigureAwait(false)

* DI fixes

* removed a hard coded project name

* fixed nrt bugs

* improved NRT and .net 3.1 support

* renamed projectName to apiName, added cli option

* trying to avoid conflict

* set GenerateAssemlbyInfo to true

* created docs/scripts folder

* moved ApiTestsBase.cs to not get overwritten

* test fixes and improvements

* fixed licenseId bug, updated readme

* build samples

* export docs

* removed new language features

* added support for .net standard 2.0

* added git_push.ps1

* fixed bug in git_push.sh due to the new directory, prompting user for commit message

* moved documentation folders

* fixed bug when apiKey in query

* bug fix
2022-01-28 12:05:36 +08:00
William Cheng
e0bde82131 update samples 2022-01-22 09:03:50 +08:00
William Cheng
55ffdb791f
mark retry class as static (#11369) 2022-01-21 16:36:19 +08:00
joaocmendes
b05faefb93
[BUG][csharp-netcore] Fix Multi Files for the same FormField (#11132) (#11259)
* [BUG][csharp-netcore] Fix Multi Files for the some FormField  (#11132)

Make FileParamerts a Multimap to enable sending more than one file with the same key.

* update documentation for csharp-netcore
2022-01-11 11:02:39 +08:00
William Cheng
1953e70661
[C#][netcore] minor code improvement (#10951)
* minor code improvement

* better code format
2021-11-25 13:28:33 +08:00
malesh
b0b09b030f
Fix #10802 csharp client multifile compile error (#10803)
* [csharp] add multifile upload sample

* [csharp] fix #10802: compile error with multi-file upload
2021-11-11 13:33:35 +08:00