Filipe Silva
af94bde2ce
#19176 fix Task.Result directly blocks thread ( #19231 )
...
- async should never be blocked on the ApiClient
To fix we invert the logic and use Task as base and keep consistency, we expect and wait result only on synchronous calls.
2024-08-04 18:33:33 +08:00
devhl-labs
aaeed0f5bd
use global keyword ( #19257 )
2024-08-04 17:55:57 +08:00
Filipe Silva
8bac93e23b
[csharp] Improved apiclient.mustache ( #18915 )
...
* improved apiclient.mustache to keep it dry, sharing a single exec with Action<> delegate.
* updated samples and test
* Removed async from ApiClient.mustache
Updated samples
* Revert change to CSharpClientDeepObjectTest.java
* Fix async await (it was not waiting creating a null exception)
Updated samples
* Fix File IO namespace with using directive
* Improved comments on new methods
Added new DRY method DeserializeRestResponseFromPolicy
* Fix comments and parameters for new method DeserializeRestResponseFromPolicy
Updated samples
2024-06-15 17:54:14 +08:00
Filipe Silva
e8bbfe23b4
[csharp] fix system.web warning and removed unneeded fqn ( #18902 )
...
* Refactor validatable.mustache moved fqn types to using directive for cleaner code
Fix netcore_project.mustache conditional "System.Web", more details:
https://learn.microsoft.com/en-us/aspnet/core/migration/inc/adapters?view=aspnetcore-7.0
* updated csharp samples
2024-06-11 19:53:39 +08:00
William Cheng
63d1564637
update C# samples
2024-05-23 14:41:44 +08:00
devhl-labs
370eca2889
[csharp] Update dependencies ( #18263 )
...
* version bump
* updated a workflow
2024-03-31 11:27:57 +08:00
ふぁ
5e9546451c
[Python] Add echo_api test object serialization for multipart requests ( #18176 )
...
* [python] echo add test object serialization for multipart requests
* [echo api] update samples
* [echo api] update samples
2024-03-23 21:40:10 +08:00
devhl-labs
da1187fc8d
[csharp] Fixes incorrect property name ( #18136 )
...
* moved camel case lambda
* renamed camel case lambda
* reverted unintended change
* fixed wrong property names
* restored accidental file deletion
* build samples
2024-03-18 13:02:26 +08:00
devhl-labs
96fad5eb2c
[csharp] Fix getModelFromParameter ( #18137 )
...
* fix getModelFromParameter
* minor fix
2024-03-18 12:54:49 +08:00
Jonathan
f323a3e788
[Python] deserialize enum json response ( fix #17789 ) ( #17791 )
...
* deserialize enum json response (python)
* adapt python samples: adding enum deserialization
* add echo test for enum json response deserialization (python)
* update samples
2024-02-08 10:52:43 +08:00
William Cheng
d0187ab359
Add tests for query parameters (array of integer/string) ( #17686 )
...
* add tests for query parameters in python client
* update other samples
* update samples
2024-01-24 10:20:18 +08:00
Anakael
11caad92df
[CSharp] feat!: add useDateOnly flag ( #17471 )
...
* feat: DateOnly for client
* fix: generated doc for csharp
* doc: fix generators README for csharp
* add DateOnly option for aspnet
* refactor: update csharp docs
* refactor: fix typo
* finish
* finish
* finish
* regenerate
* rebuild and regenerate
* fix build error
* finish
* revert path
* regenerate
* remove exceed samples
* regenerate
* add DateOnly to nullable
* remove obsolete file from list
* update test files list
* remove obsolete sample build
* revert manual tests
* revert samples to master and regenerate
* remove new samples
* remove eol
* remove eol
* add new specs
* try fix test
* update tests
* update files
* remove eol
* revert
* remove eol
* regenerate
* add net6+ support to aspnetcore
* add jobs
2024-01-10 11:34:14 +08:00
Milad
8c014372aa
[Java RESTEasy client] updating test to use the Java RESTEasy echo api client ( #17367 ) ( #17470 )
...
* updating test to use the Java RESTEasy echo api client (#17367 )
* regenerated samples
* set source and target to 1.8 to fix workflow failure, adapted parser
2023-12-26 09:32:51 +08:00
Tomohiko Ozawa
37451fa569
[Java][resttemplate] Add test for bearer auth ( #17081 )
...
* add bearer auth API to echo-api
* run generate-samples.sh
* add resttemplate echo-api sample
* add bearer auth test
* remove @Ignore
2023-11-16 00:38:49 +08:00
devhl-labs
dd4143b75e
[csharp] Added .net8 ( #17075 )
...
* added .net8
* change .net version in the github action
* upgrade manual sample
2023-11-15 15:35:02 +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
William Cheng
49208144e1
Better handling of allOf in request body ( #16991 )
...
* better handling of allOf in request body, add tests
* additional checks
* fix description
2023-11-05 22:43:45 +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
William Cheng
34265e52b1
add rule to skip xUnit1031 ( #16804 )
2023-10-12 15:56:27 +08:00
devhl-labs
2cfce7cd2d
version bump ( #16657 )
2023-10-11 16:16:06 +08:00
Robert Schweizer
9e07f85eb5
[python] Add tests and fix enum path parameters ( #16769 )
...
* test: Tests for enum params in path, query and header
* fix: Get enum ref values correctly in path parameters
Closes #16688
* fix java tests failure
---------
Co-authored-by: William Cheng <wing328hk@gmail.com>
2023-10-10 17:10:30 +08:00
William Cheng
25b67dd6bf
Run tests for C# Echo API client in CI ( #16626 )
...
* run tests for C# echo api client in ci
* trigger build failure
* Revert "trigger build failure"
This reverts commit 844ec9a3d2d00a989e3bb961d84587ecba0e9589.
2023-09-20 15:21:44 +08:00
MachineUserPTV
f530496f21
[dotnetcore] Implement QueryParameter deepObject style is missing for… ( #15945 )
...
* [dotnetcore] Implement QueryParameter deepObject style is missing for async function
* Add some csharp-restsharp tests
* add and fix tests
* restore missing files
* remove test with datetime problem
---------
Co-authored-by: Oliver Krug <Oliver.Krug@ptvgroup.com>
2023-09-20 14:57:33 +08:00
William Cheng
47a85e880b
Add tests for http basic authentication in python client ( #16488 )
...
* add tests for http basic auth in python client
* add new files
2023-09-03 19:11:53 +08:00
William Cheng
ebc9bcda44
[java][native] Add tests for oneOf form parameters ( #16487 )
...
* add tests for oneOf form parameters
* update samples
2023-09-03 16:15:54 +08:00
clement-brodu
1a458d3e0b
fix: memory leak with restclient ( #13961 ) ( #16365 )
2023-08-21 20:26:37 +08:00
William Cheng
66155d622c
update c# samples
2023-07-24 16:04:11 +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
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