William Cheng
7a2c3f7188
update C# samples
2022-10-19 23:49:54 +08:00
Jason Finch
0d56ebc702
[csharp-netcore] Enum parameter serialization to use EnumMember value when provided. ( #11448 )
...
* Add modification to petstore yaml to support testing enum string resolve. Move csharp-netcore-net50 to point to new yaml schema.
* [csharp-netcore] - For enum's with an EnumMember Attribute use this value instead of enum.ToString().
-Regenerate csharp samples to accomodate change.
* fix: rebase on master. Update samples.
* task (Samples): update csharp-netcore samples. (via generate-samples.sh)
2022-10-19 23:31:18 +08:00
devhl-labs
0c1384b950
[csharp] Fixed data type for maps of maps ( #13701 )
...
* fixed data type for maps of maps
* added models to samples
* moved code to avoid a bug in the property generation
2022-10-19 17:13:11 +08:00
William Cheng
866d67a78f
Move some travis tests to github workflow, remove redundant c# test ( #13704 )
...
* move some travis tests to github workflow, remove reduntant c# test
* setup ruby
* switch to setup-ruby
* bundle install
* remove bash
* remove bundle install
* remmvoe gemfile
* add more folders in tab detection
* comment out java folder in tab detection
* undo changes in tab detection
2022-10-16 16:20:49 +08:00
devhl-labs
f11cb7f17d
[csharp] Delete and build samples ( #13641 )
...
* delete and build samples
* how did this not get committed?
* how did this not get committed?
* how did this not get committed?
* fixed csharp netcore functions
* reverted two files
* restored manually created tests
* reverted some unintentional changes
* restored unintended changes
2022-10-16 10:18:48 +08:00
devhl-labs
0581d81eaa
[csharp] Fixed data type issues ( #13541 )
...
* fixed data type issues
* reverted a change
2022-10-03 22:08:28 +08:00
William Cheng
6b47b14896
update restsharp to the latest stable version ( #13525 )
2022-09-27 11:05:37 +08:00
William Cheng
23c67d1581
update c# samples
2022-09-27 01:10:20 +08:00
William Cheng
d46189bb28
Add .net framework 4.8 support ( #13504 )
...
* add .net framework 4.8 support
* add dependency, test in appveyor
* update doc
2022-09-26 11:02:39 +08:00
William Cheng
ac7ebf67dd
Prepare 6.2.1 ( #13517 )
...
* update to 6.2.1-SNAPSHOT
* update samples
* update doc
2022-09-25 00:10:30 +08:00
William Cheng
24f476a381
prepare 6.2.0 release ( #13514 )
...
* set release version to 6.2.0
* update samples
* comment out rust server test in travis
2022-09-24 21:44:42 +08:00
William Cheng
928070c57a
Prepare 6.1.1 SNAPSHOT version ( #13399 )
...
* prepare v6.1.1
* update samples
* update doc
2022-09-11 19:08:23 +08:00
William Cheng
43dbb5ff9c
6.1.0 release ( #13398 )
2022-09-11 17:16:07 +08:00
Savitha M R
522a5df24a
[csharp-netcore] To support Secret API key input as string ( #13276 )
...
* To support api secret key to take input as string.
* To support Secret API key input as string
Co-authored-by: Savitha M R <savitha.m@maplelabs.com>
2022-08-29 18:17:30 +08:00
William Cheng
a6ce5f711b
Better logic to handle duplicated properties in parent, child models ( #13135 )
...
* better logic to handle duplicated properties in child, parent models
* add tests, update samples
2022-08-10 14:15:25 +08:00
Linus Klöckner
fca13eb9e9
[csharp-netcore] Form data serialize non-primitive objects ( #12967 )
...
* csharp-netcore: serialize non-primitive objects in form-data
* csharp-netcore: update samples
2022-08-06 21:59:06 +08:00
William Cheng
35feca98cf
fix test
2022-08-06 16:34:21 +08:00
Krzysztof Łabuś
641d5159eb
C# API Client CancellationToken, Base Validation and Nullable/Required ( #13049 )
...
* Ensure CancellationTokenSource disposal in CSharp clients
* Fixed broken BaseValidate in CSharp models
* Ensure final CancellationToken is used in CSharp API clients
* Ensure EmitDefaultValue true for required properties in CSharp clients
* Regenerated samples
* Fixed broken C# ApiClient.ExecAsync disposable resources
2022-08-06 16:33:18 +08:00
William Cheng
eeb1711f9f
Add support for string response deserialization ( #12964 )
2022-07-21 15:18:59 +08:00
William Cheng
c26e19cbc0
Revert "Add support for string response deserialization ( #12910 )"
...
This reverts commit b8524bee232a55e28693354ab543b91e3f65629a.
2022-07-21 12:58:46 +08:00
Emanuele Saccomandi
b8524bee23
Add support for string response deserialization ( #12910 )
...
* Add support for string response deserialization
* updated samples
* updated samples
* realigned to master
* fix: errors were not getting thrown
* updated samples
* fix: errors were not getting thrown
* updated samples
2022-07-21 12:45:50 +08:00
William Cheng
05f4792df7
[csharp-netcore] fix OAuth2 integration when using httpclient
library ( #12954 )
...
* Update RestSharp to v108
* Add OAuth2 Application (client_credentials) authentication
* Run generators and fix typos
* Undo accidental python and rust changes
* Add documentation, fix authenticator bug, and fix user agent bug
* Fix tests
Missed some changes in the mustache templates.
Also had to update the `netcoreapp2.0` test project to `netcoreapp3.1` for compatibility with RestSharp
* Switch HttpUtility to WebUtility for compatibility
* skip oauth file generation for httpclient
* fix templates
* remove files, regenerate samples
* add reference to system.web
Co-authored-by: Jared Bates <Jared.Bates@sight-sound.com>
2022-07-20 20:30:56 +08:00
Jared Bates
2dcc319e13
[csharp-netcore] Update RestSharp and add client_credentials auth support ( #12789 )
...
* Update RestSharp to v108
* Add OAuth2 Application (client_credentials) authentication
* Run generators and fix typos
* Undo accidental python and rust changes
* Add documentation, fix authenticator bug, and fix user agent bug
* Fix tests
Missed some changes in the mustache templates.
Also had to update the `netcoreapp2.0` test project to `netcoreapp3.1` for compatibility with RestSharp
* Switch HttpUtility to WebUtility for compatibility
2022-07-20 19:25:29 +08:00
Justin Black
c44fe8a04a
Fixes fromProperty when property is required vs optional ( #12858 )
...
* Adds required boolean to fromProperty
* Adds required to other method signatures
* pythn-exp sample regenerated
* Samples regenerated
* Adds java test of fix
2022-07-13 18:17:33 -07:00
justM4D
464da4a10f
[csharp-netcore] Generic Host: Added port definion to the uriBuilder in API template ( #12795 )
...
* Added port definition to uriBuilder, since it was ignored before and couldn't be set even by supplying a custom client
* generated samples
* update samples
Co-authored-by: Matthias Lewen-Rieger | PROSPER X GmbH <matthias.lewen-rieger@prosper-x.de>
Co-authored-by: William Cheng <wing328hk@gmail.com>
2022-07-13 16:49:59 +08:00
William Cheng
60c5875091
Custom Content type: better message and added tests ( #12841 )
...
* add tests for custom mime types
* better message for custom mime type example handling
* minor code format change
2022-07-12 18:32:15 +08:00
William Cheng
6cae0fbb78
Merge remote-tracking branch 'origin/6.1.x'
2022-07-04 01:22:51 +08:00
William Cheng
9e412edb64
Prepare 6.0.1 release ( #12762 )
...
* update to v6.0.1
* update doc
* update samples
2022-07-03 23:36:46 +08:00
William Cheng
d0a0b822d6
[csharp-netcore] Add support for ComVisible, CLSCompliant attributes ( #12733 )
...
* add support for ComVisible, CLSCompliant attributes in csharp-netcore clients
* fix import
2022-07-01 13:51:29 +08:00
Anakael
280de38de9
[csharp-netcore] fix: url escaping ( #12739 )
...
* fix: url escaping
* doc: add Polly to dependencies
* Revert "doc: add Polly to dependencies"
This reverts commit 29b95ed2c42455e970ac806149c7602980be8f2f.
2022-06-30 23:10:17 +08:00
William Cheng
22ea4a60a1
update readme to refer to 13.0.1 newtonsoft json ( #12689 )
2022-06-24 22:20:39 +08:00
William Cheng
f043602151
update samples
2022-06-03 18:16:27 +08:00
Prajon Shakya
421b3be828
[csharp-netcore] Add "WithHttpInfo" variant methods in api_doc ( #12323 )
...
* Added 'WithHttpInfo Variant' in api_doc template
* Update the samples
2022-06-03 18:10:15 +08:00
William Cheng
5bd94b8fa0
prepare 6.1.x
2022-05-26 12:58:25 +08:00
William Cheng
36a9cf394d
update samples ( #12466 )
2022-05-26 12:13:59 +08:00
William Cheng
69f79fb789
Prepare 6.0.0 release ( #12463 )
...
* prepare 6.0.0 release
* update samples
* update meta codegen
2022-05-26 10:28:01 +08:00
William Cheng
12cdacabbf
[Inline model resolver] better handling of inline responses and bug fixes ( #12353 )
...
* better handling of inline response schemas, bug fixes
* update samples
* add new files
* better code format
* remove unused ruby files
* fix java test
* remove unused js spec files
* remove inline_response_default_test.dart
* fix webclient tests
* fix spring tests
2022-05-13 10:17:59 +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
4e82b74cd5
fix warning in cref for list ( #12096 )
2022-04-10 09:37:09 +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
2d4a01aa70
Revert "Prepare 6.0.0 beta release ( #12039 )"
...
This reverts commit 914b539eea7097ad2b4323d20c8f95144782cb68.
2022-04-04 12:17:12 +08:00
William Cheng
914b539eea
Prepare 6.0.0 beta release ( #12039 )
...
* update to 6.0.0-beta
* update samples
2022-04-04 10:29:49 +08:00
devhl-labs
7b6fa755c1
[csharp-netcore] Composed primitives support in generichost ( #11924 )
...
* 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
2022-04-03 17:29:49 +08:00
devhl-labs
40d3331e78
[csharp-netcore] Inject json options ( #11862 )
...
* 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
2022-03-30 16:59:05 +08:00
William Cheng
571e635a54
[csharp][netcore] better tests for oneOf with primitive types ( #11907 )
...
* update samples
* undo changes for generichost
2022-03-19 22:21:33 +08:00
Jason Finch
ffd758d82d
fix: [csharp-netcore]: oneOf fixes for Primitive types ( #11427 )
...
* fix: [csharp-netcore]: oneOf fixes for Primitive types
- Escape type in XML comment to avoid issue with types<T> rendering.
- Conditionals for string and Object to still throw ArgumentException.
* fix: Adjust whitespace in csharp-netcore template. Regenerate Petstore clients due to different order of items in composedSchemas.
2022-03-18 11:58:46 +08:00
devhl-labs
86281a28c7
[charp-netcore] Fixed property and parameter sorting ( #11807 )
...
* 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
2022-03-16 00:35:27 +08:00
NoTuxNoBux
795db0c19e
Fix incorrect FileParameter deserialization in csharp-netcore ( #11850 )
2022-03-11 10:37:45 +08:00
devhl-labs
22a1906480
[csharp-netcore] Upgrade to System.Text.Json ( #11741 )
...
* 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 tasks to track the bugs
2022-03-10 15:02:42 +08:00
William Cheng
188f37f5a9
Merge branch 'master' of https://github.com/OpenAPITools/openapi-generator
2022-03-06 22:35:33 +08:00