600 Commits

Author SHA1 Message Date
devhl-labs
1901bf23ea
use TypeInfoResolver (#16548) 2023-09-11 20:05:02 +08:00
devhl-labs
f3eb07408d
[csharp] Support source generator (#16324)
* started source generator

* copy the options

* fixed visibility

* added new sample

* discarded changes to existing samples

* discarded changes to existing samples

* build new sample

* changed package name due to file path length limit

* reverted changes to manual tests

* fixed all new manual tests

* inject contexts into api

* only one JsonConstructor

* fixed spacing

* revert samples for easier merge master

* revert unnecessary change

* fixed formatting

* build samples

* reverting unintended commit

* fixing default value

* reverting unintended commit

* removed debugging lines

* removed unnecessary diff

* address comment
2023-09-05 10:18:08 +08:00
devhl-labs
b59719a6ea
[csharp][generichost] Minor formatting changes (#16482)
* started source generator

* copy the options

* fixed visibility

* added new sample

* discarded changes to existing samples

* discarded changes to existing samples

* build new sample

* changed package name due to file path length limit

* reverted changes to manual tests

* fixed all new manual tests

* inject contexts into api

* only one JsonConstructor

* fixed spacing

* revert samples for easier merge master

* revert unnecessary change

* fixed formatting

* build samples

* reverting unintended commit

* fixing default value

* reverting unintended commit

* move minor formatting changes to different pr
2023-09-03 16:20:12 +08:00
devhl-labs
dad677f63d
[csharp][generichost] Remove unnecessary json options (#16483)
* started source generator

* copy the options

* fixed visibility

* added new sample

* discarded changes to existing samples

* discarded changes to existing samples

* build new sample

* changed package name due to file path length limit

* reverted changes to manual tests

* fixed all new manual tests

* inject contexts into api

* only one JsonConstructor

* fixed spacing

* revert samples for easier merge master

* revert unnecessary change

* fixed formatting

* build samples

* reverting unintended commit

* fixing default value

* reverting unintended commit

* removed unnecessary json option
2023-09-03 16:19:23 +08:00
devhl-labs
c0abeceb85
[csharp] Fixed enum values with whitespace (#16316)
* fixed enum values

* build samples

* build samples

* revert samples for easier merge master

* fixed while not changing other generators

* changed logging

* minor change
2023-09-01 10:11:11 +08:00
William Cheng
80121aa88f
Prepare v7.0.1 (#16409)
* prepare 7.0.1 in master

* update doc
2023-08-25 16:11:29 +08:00
Kevin B
646ec8ba41
Fixing spelling of circiut => circuit (#16381) 2023-08-23 10:41:05 +08:00
clement-brodu
1a458d3e0b
fix: memory leak with restclient (#13961) (#16365) 2023-08-21 20:26:37 +08:00
devhl-labs
a600ef0ded
only one JsonConstructor (#16361) 2023-08-20 22:49:40 +08:00
William Cheng
e1b1b7d0c7
[csharp] JsonConverter.mustache - fix propertyName variable conflict (#16356)
* JsonConverter.mustache - Obfuscate "propertyName" variable to rare name "__jsonPropertyName__" to avoid conflict with generated variables

obfuscate "propertyName" variable, fixes issue if #allVars contains a variable named "propertyName" conflicting with the declared variable

* prefix local variable with localVar

* remove eol

* minor fix

* update

---------

Co-authored-by: SDP190 <sprizant1@gmail.com>
2023-08-19 23:33:05 +08:00
devhl-labs
76bb8a40d8
[csharp] Fixed model property data type (#16315)
* fixed model property data type

* build samples
2023-08-15 09:57:00 +08:00
devhl-labs
ef9520f989
[csharp] Fixed operation nested return type (#16314)
* fixed operation nested return type

* more robust fix
2023-08-14 13:07:36 +08:00
devhl-labs
de8f846666
[csharp] Improved regex support (#16269)
* improved regex support

* better parsing of options

* better handling of options

* spacing change

* typo

* rename the x-modifier- extension

* trivial change

* added to the sample
2023-08-08 11:40:20 +08:00
William Cheng
f6fb83878b
[Default] update isAdditionalPropertiesTrue tag to cover more types (#16227)
* enhance additional properties support

* update samples

* update tests

* add more tests

* update samples

* fix samples
2023-08-05 13:32:43 +08:00
Renny S
bd76c1b102
[csharp] Update RestSharp to 110.2.0 (#16122)
* [csharp] Update RestSharp to 110.2.0

* Post './bin/generate-samples.sh bin/configs/csharp*' and './bin/utils/export_docs_generators.sh' scripts

* OAuthAuthenticator: use configureSerialization

* ContentType prop = RestSharp.ContentType.Json

* `req` -> `request` in `Exec()` and `ExecAsync()`

* Regenerate samples
2023-07-21 17:19:38 +08:00
William Cheng
35ca486e1c
Fixed bug in http signing config for C# restsharp (#16129) 2023-07-20 17:04:02 +08:00
William Cheng
0d002d381e
[C#][restsharp] Removed warnings in HTTP signing config (#16128)
* Removed warnings in HTTP signing config for restsharp C#

* fix
2023-07-20 17:03:41 +08:00
devhl-labs
f8e19b4ebc
added equatable option (#16106) 2023-07-17 11:56:04 +08:00
William Cheng
598c27ddb0
[C#] fix validate (#16097)
* fix validation with discriminator using parent instead

* add new files

* add new workflow

* fix
2023-07-16 10:24:47 +08:00
William Cheng
b7e7314d8e
[C#] minor refactoring (#16084)
* escape keyword in toParamName (abstract C#)

* remove x-is-json (not used)
2023-07-14 00:36:57 +08:00
devhl-labs
16c149a91e
fixed bug in http signing config (#16040) 2023-07-13 08:27:55 +08:00
devhl-labs
3678085017
removed warnings (#16039) 2023-07-13 08:27:21 +08:00
devhl-labs
ceb48d3af4
removed IApi namespace (#16058) 2023-07-11 14:01:45 +08:00
devhl-labs
9362b49173
added event for errors (#16057) 2023-07-11 10:54:29 +08:00
devhl-labs
fe78be405e
[csharp][generichost] Added event on http response to facilitate server health tracking (#16046)
* added event on http response to facility server health tracking

* renamed a file

* handled the renamed file
2023-07-10 16:10:04 +08:00
William Cheng
f0084b39ac update samples 2023-07-09 22:39:00 +08:00
Emanuele Saccomandi
9baf4988f3
Zapier generator (#15997)
* First version of Zapier Generator

* fixed zapier codegen

* added zapier templates

* added zapier sample

* added zapier doc

* added zapier generator form data management

* added samples generation

* updated docs

* fixed zapier api template

* fixed zapier samples export

* added zapier readme template

* fixed zapier readme template

* added petstore readme

* cleaned zapier generator

* updated samples

* fixed zapier enum label

* cleaned code

* updated samples

* improved zapier search actions

* updated samples

---------

Co-authored-by: Mauro Valota <maurovalota@fattureincloud.it>
Co-authored-by: William Cheng <wing328hk@gmail.com>
2023-07-09 21:52:04 +08:00
devhl-labs
f63ef71432
version bump (#16038) 2023-07-09 10:27:34 +08:00
devhl-labs
c6877947ac
removed a warning (#16037) 2023-07-09 10:26:59 +08:00
devhl-labs
1d470c3866
fixed nre (#16036) 2023-07-09 10:25:31 +08:00
William Cheng
a5f1c01548 update samples 2023-07-07 11:28:20 +08:00
Beppe Catanese
315fbff680
[BUG] Change default value for header parameter (#15990)
* Override toDefaultValue method

* Regenerate sample
2023-07-07 10:58:24 +08:00
Daniel Lange
6b62f2b05a
[csharp-netcore] Enable setting of RemoteCertificateValidationCallback through IReadableConfiguration (#15979)
* Fix for [BUG][C#][csharp] Use RestClient.RemoteCertificateValidationCallback for SSL validation #11497

* Fixed modification of wrong files through merging to master and applied the changes to the correct files

* Updated examples

* Forget some examples

* Updates branch to reflect master changes and published changed example files yet again to solve conflicts

* Fixed examples
2023-07-06 11:48:10 +08:00
devhl-labs
8d625986c6
used list instead of set (#16015) 2023-07-06 11:33:01 +08:00
William Cheng
b465d88880 update samples 2023-07-04 00:29:06 +08:00
Aswin Francis
ba0c73e164
[csharp] [Req#15932] Added support for windows authentication by exposing UseDefaultCredentials property (#15935)
* Added support for windows authentication by exposing UseDefaultCredentials property

* Updated samples and docs

* update doc, samples

---------

Co-authored-by: William Cheng <wing328hk@gmail.com>
2023-07-03 15:53:47 +08:00
devhl-labs
00fcaa15c0
[csharp][generichost] Add Option struct to enable better validation (#15977)
* add Option struct to enable better validation

* use kebab case
2023-07-03 14:40:24 +08:00
devhl-labs
179d0bcb9c
added value converter class (#15970) 2023-07-02 10:07:27 +08:00
devhl-labs
ebcd1d7a32
[csharp][generichost] Exposed internals to test project (#15920)
* exposed internals to test project

* exposed internals to test project
2023-07-02 00:28:59 +08:00
devhl-labs
4dc7ffd2f3
[csharp][generichost] Fix model accessor (#15918)
* removed redundant properties

* removed commneted code

* fixed oneof anyof serialization

* restored discriminator as a model property

* added manual sample, removed need for new discriminator property

* minor pipeline change

* renamed manual test solution

* fixed model accessor

* used visibility option

* resolved conflicts

* build samples

* resolved conflicts

* resolved conflicts

* resolved conflicts

* resolved conflicts

* added a comment
2023-07-02 00:06:42 +08:00
devhl-labs
4eaa358476
[csharp][generichost] Fix oneof anyof serialization (#15873)
* removed redundant properties

* removed commneted code

* fixed oneof anyof serialization

* restored discriminator as a model property

* added manual sample, removed need for new discriminator property

* minor pipeline change

* renamed manual test solution

* resolved conflicts

* build samples

* bug fix

* fixed pipeline

* added a comment
2023-07-01 22:37:58 +08:00
devhl-labs
ea2c6860d3
[csharp][generichost] Removed redundant properties (#15869)
* removed redundant properties

* removed commneted code

* restored discriminator as a model property

* build samples
2023-06-25 13:01:50 +08:00
devhl-labs
c23560afb9
removed unecessary extension from generichost (#15870) 2023-06-25 11:43:16 +08:00
William Cheng
7c67f731bc
Rename csharp-netcore to csharp (#15903)
* rename csharp-netcore to csharp

* rename file

* renmae modules/openapi-generator/src/main/resources/csharp-netcore

* update samples

* mv dir

* update samples

* rename csharp-netcore to csharp in appveyor.yml

* update doc
2023-06-25 11:08:59 +08:00
William Cheng
421bcd1787
Decommission csharp client generator (#15708)
* remove csharp client generator

* update samples/docs
2023-06-02 20:42:29 +08:00
Tiffany Marrel
c2f635a330
fix use of isBasic and isBasicBasic and isBasicBearer and isHttpSignature in documentation (#15443)
* [ada] fix use of isBasic condition

* [apex] fix use of isBasic condition

* [asciidoc] fix use of isBasic condition

* [python] fix use of isBasic condition

* [csharp C#] fix use of isBasic condition

* [htmlDocs] fix use of isBasic condition

* [Ruby] fix use of isBasic condition

* [scala] fix use of isBasic condition

* [julia] fix use of isBasic condition

* [Objective-C objc] fix use of isBasic condition

* [GraphQL] fix use of isBasic condition

* [MarkDown] fix use of isBasic condition
2023-06-01 09:47:00 +08:00
devhl-labs
784c700d37
[csharp] Fix property names (#13681)
* build samples

* build samples

* commit java changes

* use var as prefix instead of _ for illegal names

* resolved conflict
2023-05-28 13:50:02 +08:00
William Cheng
0c3460f95b Merge remote-tracking branch 'origin/master' into 7.0.x 2023-05-10 15:00:56 +08:00
Tiffany Marrel
f9937e77d6
[csharp C#] cleanup documentation (#15305)
* [C# csharp] fix documentation of API authorization in README files

fix hierarchy level + add internal links + align wording across generators

* [C# csharp] fix anchor links in documentation
2023-05-10 14:11:43 +08:00
William Cheng
182240ea1d
[csharp-netcore] Better regular expression (#15378)
* do not escape regular expression in c#

* update samples

* better code format
2023-05-04 18:42:30 +08:00