9299 Commits

Author SHA1 Message Date
William Cheng
5cb66a8ab0
[R] Fix empty variable name, fix post process model (#12708)
* fix empty variable name, fix post process model

* fix empty base name
2022-06-27 19:26:51 +08:00
William Cheng
9522f6d1e2
add toString method in models (#12706) 2022-06-27 19:26:35 +08:00
Bogdan Ilchyshyn
55d9231ca9
using import type instead of import for types imports (#12534) 2022-06-26 09:24:13 +02:00
William Cheng
726765af50
improve r documentation, readme, code sample (#12700) 2022-06-26 15:15:22 +08:00
Daniel Metzner
3b15bb8a4e
[PHP] Enhance Symfony generator (#12532)
* Enhance Symfony generator

  - Add missing typehints
  - Add missing use statements
  - Simplify model ctor
  - Change fallthrough Exception to Throwable
  - prevent storing result of void methods
  - fix validate method
  - add default null values to model properties
  - simplify API interface return values
  - fix/rework default value implementation
  - fix optional params deprecation warnings
  - ..

For more details check out the PR: https://github.com/OpenAPITools/openapi-generator/pull/12532

* Enhance Symfony generator Tests

  - Skip risky tests
  - Fix type hint error
  - Fix class exists tests
  - Fix broken doc block
  - Enhance annotations
  - Update phpunit.xml.dist
  - Fix test config resource location
2022-06-25 20:53:21 +08:00
William Cheng
286a31c019
Update jackson databind to 2.12.6.1 (#12698)
* update jackson databind to newer version

* update version

* fix retrofit2

* fix rest assured jackson samples
2022-06-25 20:30:41 +08:00
William Cheng
e4b78dbbd8
[R] minify json in toJSON (#12699)
* minify json in toJSON

* update fromjson with better variable naming
2022-06-25 18:11:25 +08:00
William Cheng
29ea48ee96
update jackson-databind-nullable to 0.2.3 (#12693) 2022-06-25 12:45:17 +08:00
William Cheng
f1a93fa3db add new test files 2022-06-25 12:05:28 +08:00
jld3103
2c9bd4a28f
Put null values into serialized output in dart2 generator (#12569)
* Put null values into serialized output in dart2 generator

* Update samples
2022-06-25 10:07:00 +08:00
William Cheng
52452750c0 add test for anytype in cpp qt client 2022-06-25 10:05:01 +08:00
Daniel Renninghoff
c1b8780fff
[cpp-qt-client] Replace AnyType with QJsonValue (#12642) 2022-06-25 09:40:28 +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
91bc8b41c4
update resteasy lib to newer version (#12688) 2022-06-24 22:20:20 +08:00
William Cheng
f5e701c459
update r api doc (#12679) 2022-06-24 10:39:48 +08:00
William Cheng
c3970d7348
update r model doc (#12676) 2022-06-23 20:47:12 +08:00
William Cheng
7d768f2535
[R] add error object type support (#12402)
* use rlang as exception in the petstore test

* add errorObject support

* fix method name, use ModelApiRespeonse

* update samples

* update doc

* fix api exception
2022-06-23 13:45:05 +08:00
William Cheng
45baa5e621 update kotlin samples 2022-06-23 11:19:06 +08:00
Eric Durand-Tremblay
c38d825a89
[BUG] Issue 10792 Kotlin generator produces invalid code when allOf is used (#12594)
* Step to reproduces

* Fix isMap detection for kotlin codegen

Co-authored-by: Eric Durand-Tremblay <etremblay@kronostechnologies.com>
2022-06-22 21:31:16 +01:00
Yartsev
75b883c5a5
OkHttpClient - fix enum properties in requests (#12661)
* OkHttpClient - fix enum properties in requests

* Has been committed the generated code

Co-authored-by: Mikhail Yartsev <mihail.yartsev@lamoda.ru>
2022-06-22 21:29:12 +01:00
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
3143390d59
[java][okhttp-gson] Add streaming support in group parameters (#12601)
* add streaming support in group paramters

* add tests
2022-06-16 16:20:32 +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
Justin Black
a00ae4631d
Fixes double serialization bug in python-experimental (#12561)
* Partial template update, simplifies ref6570 serialization

* Updated serialization

* Typo fixes

* Fixes test_query_style_form_serialization

* Fixes test_cookie_style_form_serialization

* FIxes test_style_simple_in_path_serialization

* Fixes test_style_simple_in_header_serialization

* Fixes many parameter tests

* Deletes duplicate method

* Fixes TestParameter.test_path_params_no_style

* Fixes test_style_pipe_delimited_serialization

* Fixes test_header_params_no_style

* Fixes test_style_space_delimited_serialization

* Fixes test_query_style_form_serialization

* Fixes test_cookie_style_form_serialization

* Fixes test_query_params_no_style

* Fixes test_cookie_params_no_style

* Fixes test_delete_endpoint_without_request_body

* Fixes all tests

* Reverts version file

* Adds test_get_user_by_name to test path param url encoding

* Adds test_body_with_query_params

* Samples regenerated
2022-06-13 07:45:15 -07:00
Hui Yu
bf22f38015
[C][Client] Support freeform object (#12557) 2022-06-13 15:52:02 +08:00
cachescrubber
a7db213c2d
Upgrade virtualan-plugin to 2.5.1 (#12429)
* Upgrade virtualan-plugin to 2.5.1

* Generate samples

* Upgrade virtualan sample to springdoc

* Generate Samples

* Add samples/server/petstore/springboot-virtualan to ci run

* Upgrade virtualan-plugin to 2.5.2

* Generate samples

* Add virtualan.version to spring-boot-3 pom.xml, upgrade to 2.5.2
2022-06-13 14:48:26 +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
Mike Welsh
5462681348
Add milestone repository for Spring maven plugin (#12530)
* Add milestone repository for Spring maven plugin

* Update Springdoc version
2022-06-07 10:51:51 +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
6948f15514 update jaxrs cxf samples 2022-06-06 18:38:26 +08:00