5759 Commits

Author SHA1 Message Date
Oleh Kurpiak
7b108c2a10
handle wildcard sub content-type (#12469) 2022-06-19 23:20:57 +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
Loïc Ledoyen
3ec15740f5
[JAVA][Feign] Remove camelCase naming for form parameters (#12587) 2022-06-15 15:50:07 +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
cdc2d92609
[Java] fix bugs when property name, datatype are the same (#12581)
* fix bugs when property name, datatype are the same

* add null check

* add Locale.ROOT
2022-06-12 22:36:10 +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
William Cheng
ee9b9843db
Add new option to customize inline model naming convention (#12562)
* temp fix

* add support to customize inline schema naming convention

* Revert "temp fix"

This reverts commit e3bca56bfbb0032d382fe79cd2a8565f4aad630c.

* minor fix, add tests

* update description
2022-06-11 09:12:22 +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
DevFlorian
3b587201cd
[REQ] Add equals and hashcode to java-cxf pojo #12519 (#12520)
Co-authored-by: FWermelskirchen <fwermelskirchen@eitco.de>
2022-06-06 15:16:48 +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
JGRsystematic
daa95decda
Use Arrays.equals and Arrays.hashCode by built-in array types (#12502) 2022-06-06 12:01:37 +08:00
Daniel Karso
2c39835353
[PHP] Replace @ character so we can use Hydra Jsonld models. (#12171)
* Replace @ character so we can use Hydra Jsonld models. This fixes
duplicate @id id properties in models.

* Invalid test method

* Fix tests

* Fix tests 2

Co-authored-by: Daniel Karso <daniel.karso@worldstream.com>
2022-06-06 11:48:13 +08:00
0x7162
c4db27f24d
Fixes #9923 - added recursion for nested objects (#12428) 2022-06-06 11:30:31 +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
f52ee28215
Fix NPE when generating examples for parameter (object) (#12538)
* fix NPE when generating examples for parameter (object)

* add new files
2022-06-05 16:19:37 +08:00
Chao Yang
6869f3b0b9
Skip generating operation examples when flag is set (#12539) 2022-06-05 14:12:34 +08:00
William Cheng
0ec2bda3c4
update build.gradle to work with junit5 (#12535) 2022-06-05 09:45:46 +08:00
Antonio Sagliocco
5b44aaf8d7
[Dart][Client] Support parsing DateTime (#12433)
* Support DateTime parsing

I've got issue in parsing an Array of Strings in datetime format, which the generator translates into a List<DateTime>.

This just fixes it

* update dart sampels

Co-authored-by: William Cheng <wing328hk@gmail.com>
2022-06-04 21:59:46 +08:00
Bogdan Ilchyshyn
aac39eabc7
fixing typo in InitOverrideFunction (#12528) 2022-06-04 18:40:13 +08:00
Daniel Metzner
f30257d10a
Fix syntax error for $jsonDeserializationVisitor (#12521) 2022-06-04 18:35:33 +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
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
Mike Welsh
fbc35a2a6f
[BUG] Use https URL for Spring milestone repository (#12512)
- Also set version for spring maven plugin as it does _not_ work with the milestone version
2022-06-03 00:36:45 +08:00
William Cheng
4d149e7b87 replace tabs with 4-space in SpringCodegenTest.java 2022-06-03 00:36:01 +08:00
Matthias Wimmer
bcc77d4ac4
Fix for #12504: invalid elm code for paths containing UUIDs (#12506)
Fixes #12504
2022-06-01 14:00:02 +02:00
WeihmannTNG
88e2490087
[Java/Spring] Fix of issue #12494: call to superclass method is done with correct arguments (#12496)
* [Java/Spring] add missing key parameter to put-item method call of super class (#12494)

* [Java/Spring] add test for missing key parameter to put-item method call of super class (#12494)
2022-06-01 08:28:20 +08:00
Kuzma
129fd0ad5c
[Typescript] update addImport method (fix oneOf) (#11689)
* fix addImport method

* add function splitComposedType

* super.addImport

* add docs for splitComposedType

* add docs for splitComposedType
2022-05-30 11:53:26 +02:00
Kuzma
6f322060f7
[Typescript] Support text/html by ObjectSerializer.parse (#12459)
* add support text/html

* regenerate samples

* test
2022-05-30 11:51:37 +02:00
Kuzma
51f624ebe4
typescript: fix status code (#12472) 2022-05-30 11:49:58 +02:00