William Cheng
012f90895f
add doc to api exception, response object in R client ( #12659 )
2022-06-22 16:47:27 +08:00
William Cheng
a599ae927f
fix deserialization for r model with special item name ( #12658 )
2022-06-22 15:06:56 +08:00
William Cheng
f2cc3b8611
fix roxygen warnings in oneof, anyof, api_client ( #12654 )
2022-06-21 16:35:24 +08:00
William Cheng
042f717352
[R] escape item reserved words in model items ( #12653 )
...
* fix item reserved words
* add comment
* add log
2022-06-21 11:42:27 +08:00
William Cheng
1f7a49539f
update roxygen to newer version ( #12652 )
2022-06-21 09:59:18 +08:00
William Cheng
f29fdab33d
update constructor for r oneof, anyof objects ( #12643 )
2022-06-21 09:25:54 +08:00
William Cheng
c26ac3f8a3
add documentations to r oneof, anyof ( #12638 )
2022-06-19 23:19:55 +08:00
Tomasz Janiszewski
0140f84f80
Keep AST small when usign builder ( #12610 )
2022-06-17 15:14:48 +08:00
Hui Yu
bcb5f55a2d
[C][Client] Set the default value for the null json ( #12620 )
2022-06-17 15:01:33 +08:00
Jorge Rodríguez Martín
8b7736501d
Fix cookies in parameters are always generated as required ( #12599 )
...
* Fix cookies in parameters are always generated as required
* Fix cookies in parameters are always generated as required
2022-06-16 17:50:16 +08:00
William Cheng
01fdff0e06
update java samples
2022-06-15 15:56:40 +08:00
William Cheng
bd6617b3e7
Better null check for encoding ( #12597 )
...
* better null check for encoding
* add tests
* update samples
2022-06-15 15:49:30 +08:00
Marley
6be94becee
[ts-angular]: added ts-ignore directive to addToHttpParams
to avoid compilation errors ( #12591 )
...
* [ts-angular]: added ts-ignore directive to `addToHttpParams` to avoid compilation errors
* updated samples
2022-06-14 13:18:39 +02:00
Arne Beer
ef583c53dd
[typescript-fetch] Fix ToJSON for non-descriminator oneOf constructs ( #12513 )
...
* [typescript-fetch] Fix ToJSON for non-descriminator oneOf constructs
* [typescript-fetch] Update samples for oneOf fix
2022-06-13 17:03:12 +02:00
Hui Yu
bf22f38015
[C][Client] Support freeform object ( #12557 )
2022-06-13 15:52:02 +08:00
William Cheng
c2595335c3
[java] Add useSingleRequestParameter support ( #12580 )
...
* add useSingleRequestParameter support to java client
* trigger build failure
* trigger build failure
* Revert "trigger build failure"
This reverts commit 545e57ab8f3d943d9ad6ad114841a37d3b01a47b.
* Revert "trigger build failure"
This reverts commit 849f71f1f1a28659b0fd375986d7e66e9c6d04ac.
* update doc
2022-06-12 17:23:42 +08:00
William Cheng
0c18b2e302
update jersey3 jackson-databind to 2.13.2.2 ( #12579 )
2022-06-12 14:57:29 +08:00
William Cheng
c7107a1ecc
throw exception when failed to refresh token (jersey3) ( #12577 )
2022-06-12 14:56:59 +08:00
William Cheng
3bc4416554
update go samples
2022-06-11 09:24:50 +08:00
Beppe Catanese
aeb40ab0ae
[Go] Address Gosec vulnerabilities in Go client mustache template ( #12540 )
...
* Fix potential file inclusion via variable
* Fix deferring unsafe method "Close" on type "*os.File"
* Update samples
* Correction to use existing variable
* Correction generated samples
2022-06-11 09:10:48 +08:00
Jean-François Côté
45f430f5c8
Fix problem when uploading file using form-data in jersey2 client ( #12563 )
...
* Fix problem when uploading file using form-data in jersey2 client
* Remove serialization that is not required for most cases
* Small fix
2022-06-11 09:08:51 +08:00
William Cheng
14aef2c93d
[R] Add validateJSON to oneOf, anyOf models ( #12548 )
...
* add validateJSON to r oneof, anyof models
* update tests
2022-06-08 00:35:40 +08:00
William Cheng
4fbe1e9115
[R] add anyOf support ( #12544 )
...
* add anyOf support
* add anyOf support to r client generator
2022-06-07 10:05:34 +08:00
javier-garcia-meteologica
a339123586
Fix typescript-fetch compatibility with noUncheckedIndexedAccess ( #12542 ) ( #12543 )
2022-06-06 17:42:52 +02:00
William Cheng
5db8cd0eff
fix toJSON, add tests ( #12541 )
2022-06-06 23:17:35 +08:00
William Cheng
8f3dd48772
update samples, docs
2022-06-06 12:20:21 +08:00
Ion Bazan
5bd3694927
fix @implements annotations in PHP client ( #11908 )
2022-06-06 12:08:46 +08:00
Paul-Etienne François
ec6c4a4b6c
[Feature] Handle optional operation responses ( #12342 )
2022-06-05 19:55:03 +01:00
William Cheng
6cd246931e
[R] add oneOf support ( #12491 )
...
* add oneof support
* add validateJson method
* add validteJSON and tests
* add tests, add oneOf logic
* better error message in validateJSON
* fix tests
* add test for error message
* remove unused code
2022-06-05 18:03:34 +08:00
William Cheng
0ec2bda3c4
update build.gradle to work with junit5 ( #12535 )
2022-06-05 09:45:46 +08:00
William Cheng
ee9ba4a95a
update ts samples
2022-06-04 18:43:59 +08:00
Bruno Coelho
fe8187ba6d
[Kotlin][Client] replace java.nio.* to avoid crash on Android API 25 and bellow ( #12529 )
...
* [Kotlin][Client] replace java.nio.* to avoid crash on Android API 25 and bellow
* [Kotlin][Client] update sample projects
* [Kotlin][Client] update sample projects
2022-06-04 16:26:59 +08:00
William Cheng
45a3b15b69
[java][okhttp-gson] Fix NPE in the response header, junit5 issue in surefire plugin ( #12525 )
...
* fix okhttp pom to work correctly with junit5
* fix version, fix NPE in response headers
2022-06-04 16:25:15 +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
mkusaka
89193074e2
[typescript-angular] remove outdated angular samples ( #12134 )
...
* [typescript-angular] remove outdated angular samples
* [typescript-angular] remove unused sample
* [typescript-angular] remove unused ref
* [typescript-angular] add oneof & provided in any examples
* [typescript-angular] update samples
* [typescirpt-angular] migrate test to angular 12/13
* [typescript-angular] update samples
2022-05-30 11:48:12 +02:00
julienlavigne
4cfc32e426
Kotlin-client: Pass OkHttpClient instance to the base class (ApiClient) ( #12493 )
...
* Pass client to the base clase
* Regen samples
2022-05-30 10:40:58 +01:00
William Cheng
f0ea10f239
Update R auto-generated doc ( #12488 )
...
* update r doc, tests
* add new files
2022-05-29 10:01:44 +08:00
William Cheng
05d49d9107
Add support for allOf in R client generator ( #12487 )
...
* add support for all in R client generator
* update samples
2022-05-29 07:22:18 +08:00
Jon Schoning
078232acb5
[haskell-http-client] relax Aeson constraint to allow Aeson 1 ( #12486 )
2022-05-27 23:22:09 -05:00
Akhil Nair
e823290c8f
[PYTHON] GetItem not working for Client generated allOf model and broken since 5.2.0 ( #12239 )
...
* I feel the issue is due to the creation of self._var_name_to_model_instances while doing the deserialization of the data.
Earlier the Python SDK code was using get_var_name_to_model_instances function which was adding var name to model instances that contain it. So <class 'openapi_client.model.stream_options_all_of'> will not part of mapping in self._var_name_to_model_instances for variable name stream_options.
Now with the latest Python SDK code following is the way through which var_name_to_model_instances is created:
for prop_name in model_args:
if prop_name not in discarded_args:
var_name_to_model_instances[prop_name] = [self] + composed_instances
Now as we can see that the var_name_to_model_instances is populated with self and composed_instance which will also contain stream_options_all_of as a composed instance and there will be no check that if stream_options is present in composed_instances or not.
As there is no attribute_mapping found for stream_options in stream_options_all_of, the type for stream_options will be treated as dict for mapping stream_options_all_of as mentioned by @Chekov2k.
So what I suggest is the following code:
for prop_name in model_args:
if prop_name not in discarded_args:
var_name_to_model_instances[prop_name] = [self] + list(
filter(
lambda x: prop_name in x.openapi_types, composed_instances))
This way we can check if the property name is present in that composed instance or not. If it's okay for @spacether I can raise a PR for this.
* [get_item_all_of_bug]
Added samples, test cases to validate all_of schema.
* [getiem_all_of_bug]
Updated docs and samples.
* [getiem_all_of_bug]
Updated test cases, docs and samples.
2022-05-27 21:09:48 -07:00
Christian Clauss
c2eee6f743
Use print() function in both Python 2 and Python 3 ( #12467 )
...
The current code is a syntax error in Python 3.
The proposed code works as expected in both Python 2 and Python 3.
2022-05-27 00:24:59 +08:00
William Cheng
c6a4947523
fix ocaml readme installation ( #12477 )
2022-05-27 00:03:24 +08:00
Antonin Décimo
5cce050260
[OCaml] Code generation fixes ( #12395 )
...
* [ocaml] Open Lwt.Infix rather than Lwt
The Lwt module has functions that might shadow parameters, and all the
functions we use from Lwt are in Lwt.Infix too.
File "src/apis/image_api.ml", line 13, characters 69-72:
13 | let uri = Request.maybe_add_query_param uri "all" string_of_bool all in
^^^
Error: This expression has type 'a t list -> 'a list t
but an expression was expected of type bool option
* [ocaml] update petstore samples
2022-05-26 23:54:13 +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
7b08aa408d
[R] improve code format ( #12387 )
...
* better code format for r client
* more code format improvement
2022-05-25 18:02:52 +08:00
Kuzma
45cbd5f7a7
[Php] Convert boolean value for query string (Configuration) ( #12385 )
...
* convert bool to query string format
* add variable
* update samples
* add test
2022-05-25 10:36:21 +08:00
Oren Samuel
4ec14706df
#12445 - avoid resolving ref schema to the actual schema for enum ( #12446 )
...
* #12445 - avoid resolving ref schema to the actual schema for enum
* #12445 - update samples
2022-05-24 23:51:08 +08:00