18376 Commits

Author SHA1 Message Date
teddy-s-song
1b344597bf
[typescript-axios] add temination condition for flattening url parameters (#14018) 2022-12-07 10:20:22 +01:00
Sorin Florea
fdf1ce6c51
Fix apache http client query parameters (#14193) 2022-12-07 13:57:00 +08:00
Dillen Meijboom
6686ba2dc7
Add support for style=deepObject with query parameters in the Rust generator (#13381)
* Add support for style deepObject in the Rust generator

* Add support for arrays in deepObject query parameters and fixed issue with strings
2022-12-07 00:15:36 +08:00
Tom Bärwinkel
f2321a61d3
Include response headers in the API type (#13565) 2022-12-06 23:48:29 +08:00
yannizhou05
d06ab43dd6
Update SharedTypeScriptTest.java (#13956) 2022-12-06 14:27:05 +08:00
Oleh Kurpiak
2524e8fb0a
[Java][WebClient] global blocking operations config (#14076)
* [Java][WebClient] global blocking operations config

* update samples
2022-12-06 13:30:47 +08:00
William Cheng
811e0de1be
replace spaces with tabs in go client (#14189) 2022-12-06 13:04:58 +08:00
Ian Cubbon
63629ad51c
[Go] File Download Fix Return Type (#14046)
* Changes manually cherry-picked (for the most part) from https://github.com/OpenAPITools/openapi-generator/pull/12685/files

* Examples updated post changes

* Missed a change in the mustache template

* Update examples after last fix

* Missed dereference for required files

* Update unit tests

* Missed another test case update

* `f := *f` isn't quite the same as `*f, err = ...`
2022-12-06 12:21:39 +08:00
William Cheng
cbbe243bde
update python fastapi dep to newer versions (#14188) 2022-12-06 12:12:11 +08:00
caption
f32bf510c0
update urllib3 1.26.4 to 1.26.5 (#14183) 2022-12-06 12:02:56 +08:00
Manon Grivot
ffaf173db1
Fixed typescript codegen pattern compiler (#14180)
Co-authored-by: Manon Grivot <manon.grivot@lyra-network.com>
2022-12-05 18:44:16 +01:00
Ahmed Fwela
4e387cad53
[dart-dio] Add r before '{{MappingName}}' to handle special characters in discriminators (#14167)
* Add `r` before '{{MappingName}}' to handle special characters

* Update samples

* use propertyBaseName instead of propertyName

* update samples
2022-12-05 15:00:44 +08:00
William Cheng
0103d400c2 update java samples 2022-12-05 14:33:04 +08:00
Brendan Burns
d6e7f70cb4
Modify Java ApiException to have a more informative message. (#14154)
* Modify ApiException to have a more informative message.

* Address comments.
2022-12-05 14:16:50 +08:00
Glenn Olsson
94dccae82d
[typescript-fetch] Fix response type to be Response or undefined (#13825)
* Fix response type to be Response or undefined

Current generated code produces a `response` variable set to undefined, and TS does not like you changing the type of the variable later. Therefore, set the type of the variable to be `Response` or `undefined`

Solves OpenAPITools/openapi-generator#12007

* Update samples
2022-12-03 19:27:58 +01:00
William Cheng
22bd3e31dc
add Bump.sh as bronzer sponsor (#14162) 2022-12-02 17:12:40 +08:00
Andrei Matei
c62ebc377e
[Go] Add authentication methods only if referenced in input spec (#14138)
* Add conditions for auth methods

* Add extra auth method validations

* Regenerate example SDK

* Clean-up tests

* Fix indentation and go.sum
2022-12-01 15:29:59 +08:00
Lazzaretti
e2e28a7e0e
[tyescript-axios] fix description for config options: withSeparateModelsAndAp, modelPackage, apiPackage (#14103)
* fix: tyescript-axios description

describe withSeparateModelsAndApi, modelPackage, apiPackage
as mentioned in #5008

* Update modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAxiosClientCodegen.java

* Update docs/generators/typescript-axios.md

Co-authored-by: Fabrizio Lazzaretti <fabrizio.lazzaretti@immosparrow.ch>
Co-authored-by: Esteban Gehring <esteban.gehring@gmail.com>
2022-12-01 08:05:05 +01:00
Justin Black
28ae689615
[python] Fixes Configuration w/ access_token at initialization (#14153)
* Fixes templates

* Samples regenerated

* Adds discard_unknown_keys back in, regenerates samples
2022-11-30 11:09:31 -08:00
Eric Haag
bd79231d6b
Fix Gradle plugin publishing (#14150) 2022-11-30 22:43:33 +08:00
Ladd Van Tol
12fd115af3
Support RawRepresentable enums (#14144)
* Support raw representable enums

* Update samples
2022-11-30 09:35:07 +00:00
William Cheng
77e06466db
Cleanup Shippable CI config and file (#14145)
* clean up shippable ci related config and files

* comment out closeAndReleaseRepository

* Revert "comment out closeAndReleaseRepository"

This reverts commit 5a76e403b1419950b229e14199970b2e858da017.

* remove closeAndReleaseRepository
2022-11-30 12:38:05 +08:00
Eric Haag
792d44d797
Use Gradle 7.6 to build Gradle plugin (#13860)
* Upgrade Gradle plugin Gradle build to Gradle 7.5.1

* Update Travis workflow file to support new tasks

* Update Maven POM with Gradle 7.5.1

* Capitalize many occurrences of "Gradle" in the Gradle plugin README

* Update Gradle version in appveyor.yml and shippable.yml

* Update comments

* Update Gradle wrapper to 7.5.1

* Capitalize Gradle in shippable.yml

* Leave Open API

* Upgrade Gradle plugin build to Gradle 7.6

* Upgrade wrapper to Gradle 7.6
2022-11-30 10:57:53 +08:00
William Cheng
a92afd239f
Add tests to cover base name (deep object) bug (#14142)
* better deepObject test

* add tests to cover baseName (deep object) change
2022-11-30 00:55:03 +08:00
William Cheng
b8c8f4a032 update typescript samples 2022-11-29 23:23:07 +08:00
Reinhard-PTV
6c9246ca3d
[BUG] [client] [java] [native] [csharp-netcore] Multi use of schema params within deepobjects (#13662)
* multiple use of parameters in deepobjects

* fix java native

* support camelCase

* revert modifying baseName because it is not used anymore

* remove commented line
2022-11-29 17:11:30 +08:00
Joe Longstreet
c5e79681c5
[typescript-nest] fixes query parameter append bug (#14139)
Co-authored-by: Joe Longstreet <joe.longstreet@nabis.com>
2022-11-29 09:42:56 +01:00
Hui Yu
12a6ea7beb
[C][Client] Always send integer or boolean query parameters to the API server (#14019)
* [C][Client] Always send integer or boolean parameters to the API server

* Add fake endpoint with integer and boolean parameters
2022-11-29 14:39:18 +08:00
Jendrik A. Potyka
61700fd42c
[Python] Fix client legacy generator asyncio README code example (#13336)
* fix missing asyncio keywords

* update asyncio sample petstore
2022-11-29 14:34:32 +08:00
William Cheng
3a26da76b0
Better tests for Java native client (#14132)
* add echo tests with java native client

* fix echo server

* fix github

* add npm install

* update samples

* add license header

* update smaples

* add test for array of string

* fix java native respone type casting

* better code format

* add license header
2022-11-29 14:18:14 +08:00
William Cheng
fabd0a8be2
update jackson databind to newer versions (#14136) 2022-11-29 10:55:03 +08:00
William Cheng
9f8ed6b0e2
update customization doc with better example on using the inline schema name mapping option (#14135) 2022-11-29 01:54:28 +08:00
Matthias Ernst
e93906eaea
[kotlin] Update kotlin to 1.7.21 and ktor to 2.1.3 (#14128) 2022-11-28 16:37:59 +00:00
William Cheng
d5ce79ac24
fix build warning in java apache client (#14127) 2022-11-26 17:39:50 +08:00
Tomasz365
e32b7a41b6
typescript-angular: Fixed path parameter encoding for date-time dataFormat (#14114)
* Fixed path parameter encoding for date-time dataFromat

* Regenerated samples
2022-11-25 13:27:54 +01:00
Clemens Heppner
57644b6817
Initialization of typeAliases was triggered by fromModel(...), which is incorrect. (#14054)
When fromOperation(...) was called before fromModel, the aliases were uninitialized.

(cherry picked from commit 44ea23168362cfacf8a61ff944701990cf3fea76)

Co-authored-by: Clemens Heppner <ch@wps.de>
2022-11-25 16:17:17 +08:00
DmitryKubahov
f9d4d28f48
[Micronaut] Improving micronaut-model and micronaut-client generation (#14065)
* fix documentation

* improve build.gradle.mustache and pom.xml.mustache to assume different serialization libs jackson or micronaut-serde-jackson

* improve pojo.mustache to skip generating @JsonDeserialize as for micronaut-serde-jackson

* improve model generating by removing visible flag from @JsonTypeInfo as it is not supported by micronaut-serde-jackson

Co-authored-by: dmitry.kubakhov <dmitry.kubakhov@check24.de>
2022-11-25 15:28:18 +08:00
William Cheng
90a8b4effb
[PHP] better PHP symfony test (#14117)
* better php symfony test

* trigger build failure

* Revert "trigger build failure"

This reverts commit ed7a57ead2726705fe733a7027717b864810843f.

* update samples
2022-11-25 15:01:02 +08:00
Daniel Ziegler
9220e72674
[JavaSpring] fix missing description in @Operation annotation (#13995)
* fix: Java Spring missing description in operation annotation

* update samples

Co-authored-by: Daniel Ziegler <daniel.ziegler@senacor.com>
2022-11-25 10:56:28 +08:00
Mintas
76d8119150
put back missing import for NotNull annotation in #13365 fix #13885 (#13941) 2022-11-25 10:55:15 +08:00
William Cheng
743202241e
[Java][native][apache-httpclient] update dependencies to newer versions (#14110)
* update java native dependencies to newer versions

* update java native, apache-httpclient to newer version
2022-11-24 23:55:14 +08:00
William Cheng
980062f2bb
Improve Java native, apache-httpclient with better spec (#14109)
* improve java native, apache client with better spec

* fix java native async tests

* regenerate java native tests
2022-11-24 21:48:09 +08:00
José Bustamante Morales
6bb6f1b28a
Upgrade typescript-axios from 0.26.1 to 0.27.2 (#14093) 2022-11-23 17:48:16 +01:00
Justin Black
3eb90a69e6
Adds fix and tests (#14102) 2022-11-23 06:52:11 -08:00
Charles Treatman
dc1b2ed9e0
[Go] Fix generated client tests when there is no response body (#14081)
* [WIP] Isolated test case for Go api_test generator

* Fix tests for API endpoints without a return type

* Add the rest of the generated test fix
2022-11-23 21:05:26 +08:00
William Cheng
09c070a27e
update test, suppress warnings in java apache client (#14098) 2022-11-23 20:32:01 +08:00
William Cheng
743d2cde7f
Minor improvements to Gradle plugin (#14097)
* minor improvements to gradle plugin, test

* update gradle plugin doc

* fix out
2022-11-23 20:31:13 +08:00
Sorin Florea
d74cefba83
[JAVA][APACHE] Fix apache http client query parameters (#14020)
* Fix apache http client query parameters

* Update samples
2022-11-23 14:35:01 +08:00
Sorin Florea
906ec5dfa3
Cleanup outputDir before openApiGenerate (#13659)
* Cleanup outputdir before openApiGenerate

* Add cleanupOutput property to GenerateTask
2022-11-23 11:15:59 +08:00
Justin Black
871eda2731
[python] exposes deserialized bodies for non-2XX responses (#14095)
* Template update and sample update

* Samples regenerated

* Adds verification test

* Template update

* Samples regen, fixes exception instantiation
2022-11-22 09:35:26 -08:00