devhl-labs
7e529926a6
[csharp][generichost] Implement not required nullable properties ( #16810 )
...
* init
* fixed read and write
* completed changes using latest-nrt sample
* fixed all samples
* add null check on write, change on exception
* resolved conflicts
* build samples
* added backing property for not required properties
* more not required and nullable hanlding improvements
* revert sample updates for a merge master
* revert sample updates for a merge master
* sample build is working, need to remove warnings
* fixed warnings in .net 7 with nrt
* fixed manual tests
* fixed all samples
* fix npe
* removed debugging lines
* revert changes to unused file
* removed unused lambdas
* fix a serialization bug
* make option a hidden property
* updated documentation
* improved parameter ordering
2023-11-13 10:16:35 +08:00
William Cheng
849cf88ba7
Update C# dependencies to newer versions, update reserved word list ( #16996 )
...
* update c# dep to newer versions, update reserved word list
* update doc, list
2023-11-07 12:32:23 +08:00
Torgil Folger
58f058f3e9
[csharp] RemoteCertificateValidationCallback was not called on async methods; resolves #14608 ( #16886 )
...
* Update ApiClient.mustache
added missing line in config mapping
* update samples
---------
Co-authored-by: William Cheng <wing328hk@gmail.com>
2023-10-28 20:29:38 +08:00
devhl-labs
2cfce7cd2d
version bump ( #16657 )
2023-10-11 16:16:06 +08:00
Ghufran Zahidi
1bbbb73690
fix ecdsa signing issue. ( #16772 )
2023-10-10 18:36:41 +08:00
Ghufran Zahidi
050e463872
Print the multiple matchedTypes when multiple schema matched. ( #16736 )
...
Co-authored-by: Aanisha Mishra <aanisha.mishra05@gmail.com>
Co-authored-by: Vikrant Balyan (vvb) <vvb@cisco.com>
Co-authored-by: Vikrant Balyan <vvb@users.noreply.github.com>
Co-authored-by: Sebastien Rosset <serosset@cisco.com>
2023-10-06 16:17:48 +08:00
devhl-labs
bd1caf69cb
[csharp][generichost] Handle all responses ( #16635 )
...
* handle all responses
* update the readme
* build samples
2023-10-01 23:28:14 +08:00
Graeme Wilson
fdd179e60a
[csharp] Fix Issue #16660 System.NotImplementedException in ApiClient.cs with OAuth2 ( #16661 )
...
* Set authenticator against clientOptions instead of client
* Changes from generate-samples.sh ./bin/configs/csharp*
2023-09-26 11:28:16 +08:00
martin-mfg
2ca99bdf8e
use model class for request body with additionalProperties ( #16613 )
...
* try out simple fix
* add test case
* generate samples
2023-09-23 13:07:53 +08:00
Graeme Wilson
f99002a974
[csharp] fix authorization header casing issue ( #16622 )
...
* Capitalise auth scheme irrespective of token_type capitalisation
* Changes from generate-samples.sh
* Add comment to change
2023-09-23 12:59:51 +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
clement-brodu
1a458d3e0b
fix: memory leak with restclient ( #13961 ) ( #16365 )
2023-08-21 20:26:37 +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
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
devhl-labs
1d470c3866
fixed nre ( #16036 )
2023-07-09 10:25:31 +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
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
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
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
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
Nathan Baulch
9f1fa0e440
Fix another batch of spelling typos ( #13915 )
...
* Fix typos
* Remove repeated words
* Minor grammar fixes
2022-11-07 21:30:24 +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
devhl-labs
7e4fa70067
Update allOf to not always be nullable ( #12861 )
...
* added nonNullableVars
* added return property to operation
* added return property to operation
* build samples
* added inner enum
* build samples
* allOf no longer always nullable
* added a comment
2022-08-16 00:47:51 +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
William Cheng
4ee5f72214
Use LinkedHashMap for deterministic iteration order ( #12230 )
...
* to LinkedHashMap
* LinkedHashMap
* allModels to LinkedHaskMap
Co-authored-by: yilinwang <linda.yilin@gmail.com>
2022-04-25 13:33:24 +08:00
William Cheng
8330e16d66
Better inline model resolver to handle inline schema in array item ( #12104 )
...
* better support of inline schema in array item
* update tests
* update samples
* regenerate samples
* fix allof naming, remove files
* add files
* update samples
* update readme
* fix tests
* update samples
* update samples
* add new files
* update test spec
* add back tests
* remove unused files
* comment out python test
* update js test using own spec
* remove files
* remove unused files
* remove files
* remove unused files
* better handling of allOf with a single type
* comment out go test
* remove test_all_of_with_single_ref_single_ref_type.py
* fix inline resolver, uncomment go test
2022-04-20 10:28:15 +08:00
Peter Leibiger
478ed9b8ed
Add a sample of an enum model array in query params ( #12107 )
2022-04-12 13:53:51 +08:00
Peter Leibiger
15e9d4ed8c
Add example allOf with single ref ( #10948 )
...
* Add example allOf with single ref
* fix dart-dio-next handling of that case
* Refactor without vendor extension
* Regenerate newer samples
2022-04-12 13:52:53 +08:00
William Cheng
a3fb571a1b
update C# samples
2022-03-16 22:47:19 +08:00
Peter Leibiger
a558554961
Add OAS3 allowEmptyValue for query params ( #10312 )
...
* add the special case of empty query parameters to the fake API
2021-09-03 16:32:51 +08:00
Nathan Baulch
5d68bd6a03
Fix thousands of spelling typos ( #10272 )
2021-08-28 22:58:24 +08:00
William Cheng
0204bf4ae2
Squashed commit of the following:
...
commit c5a0d0f7394aa742fa336fff7e7c1d3049761868
Merge: 8c4991ba3ed f8ff8c87609
Author: William Cheng <wing328hk@gmail.com>
Date: Tue Aug 17 18:28:12 2021 +0800
Merge branch 'mustache-linting' of https://github.com/NathanBaulch/openapi-generator into NathanBaulch-mustache-linting
commit f8ff8c87609b1ca36fa26fb8474806999638195e
Author: Nathan Baulch <nathan.baulch@gmail.com>
Date: Thu Aug 5 14:12:47 2021 +1000
Reorder tags that handle missing values
commit f5d8a33709d6a3f846a9fe4520b78c3d637051d9
Author: Nathan Baulch <nathan.baulch@gmail.com>
Date: Thu Aug 5 14:08:59 2021 +1000
Use dot notation where possible
commit 493d14921e2333f3ae19ef6fc89318b7e263a80c
Author: Nathan Baulch <nathan.baulch@gmail.com>
Date: Thu Aug 5 14:10:49 2021 +1000
Remove empty tags
commit 32480dc53f48227d55531b94e307d72671373737
Author: Nathan Baulch <nathan.baulch@gmail.com>
Date: Thu Aug 5 10:41:58 2021 +1000
Remove redundant sections
commit a8edabd722c34aa094b4aeb11c22664529c3a219
Author: Nathan Baulch <nathan.baulch@gmail.com>
Date: Wed Aug 4 22:02:22 2021 +1000
Trim extra EOF new lines
commit e89bd7458e3594bf0d30e580bc9408e45b018a57
Author: Nathan Baulch <nathan.baulch@gmail.com>
Date: Wed Aug 4 21:59:26 2021 +1000
Trim trailing whitespace
2021-08-17 18:37:51 +08:00
agilob
7edddb6531
Add map property in url params ( #10154 )
...
* Add map property in request params
* Regenerate samples to include map in url property
2021-08-17 18:31:53 +08:00
Nathan Baulch
dc23267580
[csharp] Obsolete attribute on deprecated operations and properties ( #10084 )
2021-08-04 17:28:45 +08:00
Jon Jensen
bd070308d9
[Java][*] Annotate deprecated operations and schemas ( #9478 )
...
Refs #3358
Ensure `deprecated` operations are annotated/documented as such on the
generated methods. Libraries updated:
* [feign]
* [google-api-client]
* [microprofile]
* [okhttp-gson]
* [resttemplate]
* [retrofit]
* [retrofit/play*]
* [webclient]
* [vertx]
Ensure `deprecated` schemas are annotated/documented as such on the
generated classes/fields. Libraries updated:
* [feign]
* [google-api-client]
* [jersey2]
* [microprofile]
* [native]
* [okhttp-gson]
* [rest-assured]
* [resteasy]
* [resttemplate]
* [retrofit*]
* [webclient]
* [vertx]
Also fix two minor bugs to get the java sample tests working:
* Fix an invalid jackson-datatype-threetenbp version number in vertx/pom.mustache
* Fix a bad return type in webclient/api_test.mustache when uniqueItems=true
Since this commit updates petstore-with-fake-endpoints-models-for-testing.yaml,
several other samples were updated, but it's just new files to reflect the
deprecated schemas, so there should be no consequential differences.
Relevant bits of the spec:
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#user-content-operationdeprecated
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#user-content-schemadeprecated
2021-07-19 10:27:03 +08:00
Peter Leibiger
afd65b3cb0
Update query parameter sample to include pipe delimiter ( #9590 )
2021-05-30 17:45:38 +08:00
Peter Leibiger
f7b93ebdf2
Update fake API to contain sample with binary body ( #9610 )
2021-05-29 10:26:01 +08:00
William Cheng
402cf9a3a2
Fix integer enum in csharp generators ( #9035 )
...
* fix integer enum in csharp generators
* add comment
2021-03-25 21:30:42 +08:00
William Cheng
d438d797da
[C#][netcore] Fix model, property name check ( #9049 )
...
* fix model, property name check in c# generator
* remove file
* remove file
* specify name
2021-03-23 20:00:26 +08:00
Jiri Kuncar
8cb4741248
[go][client] Fix example value for non string enums ( #8900 )
...
* [go][client] Fix example value for non string enums
* regenerated samples
2021-03-08 18:11:50 +08:00
William Cheng
e6947d7c22
[C#] Better code format (remove trailing spaces) ( #8871 )
...
* remove trailing spaces
* remove trailing space, update samples (C#)
2021-03-03 16:46:12 +08:00
miyucy
3c4b1a0c4c
Fix syntax error ( #8675 )
...
Added missing closing brace in list_invalid_properties model method.
2021-02-11 23:43:19 +08:00