11973 Commits

Author SHA1 Message Date
Max K
c81a63fd7a
[aspnetcore] Added parameter to generate models in a seperate csproj (#13024)
* Added parameter to add models in seperate project

* Update samples

* refactored ELSE
2022-07-30 15:35:56 +08:00
Yohei Kitamura
6a3226d004
[Ruby] Remove configuring verbose option from Faraday template (#13037) 2022-07-30 15:30:10 +08:00
HappyFeedFriends
79c5091de4
[Typescript] Fix generated type for files (#12831)
* fix file types

description problem in: https://github.com/OpenAPITools/openapi-generator/issues/12744

* fix: generate
2022-07-28 16:53:54 +02:00
William Cheng
e5e4e8fc07
throw exception if username, password is not set in http auth in r client (#13035) 2022-07-28 17:06:52 +08:00
William Cheng
c905760898
fix query, header params (#13034) 2022-07-28 16:31:12 +08:00
uesyn
bc65be4c9a
[typescript] typescript client generator supports import mapping (#12957)
* support import mapping

* Remove unused imports

* Remove unused variable

* Not to clear importMapping

* Re-generate samples

* Use same model import path everywhere

* Move import mapping logic from toModelImport method

Co-authored-by: Bodo Graumann <mail@bodograumann.de>
2022-07-27 17:09:27 +02:00
Pierre-Quentin Warlot
6226dc2848
fix issue content-type default charset (#13009) 2022-07-27 19:01:45 +08:00
William Cheng
e811d6bbe2
prefix local variables in api functions in r client (#13018) 2022-07-26 19:20:23 +08:00
William Cheng
adf7062e63
add support for accept, content-type headers in r client (#13017) 2022-07-26 17:19:23 +08:00
Bruno Coelho
87dc75780a
[kotlin][client] add support for unknown default case with Kotlinx Serialization (#12930)
* [kotlin][client] Kotlinx Serialization cleanup

* [kotlin][client] Kotlinx Serialization cleanup

* [kotlin][client] add support for unknown default case with Kotlinx Serialization

* [kotlin][client] add support for unknown default case with Kotlinx Serialization

* [kotlin][client] add support for unknown default case with Kotlinx Serialization

* [kotlin][client] improve Kotlinx Serialization naming

* [kotlin][client] improve Kotlinx Serialization naming
2022-07-26 09:42:19 +01:00
William Cheng
bc98014146
Add auto-generated .swiftformat to Swift clients (#13002)
* add .swfitformat to swift client

* minor format change
2022-07-26 11:21:53 +08:00
Justin Black
2b9a1ad0fc
[python-experimental] Consolidates model tests into a subfolder (#13006)
* Consolidates model tests into a subfolder

* Regenerates samples
2022-07-24 14:02:34 -07:00
Justin Black
30f1f11205
[python-experimental] Adds response body tests for json content type (#12988)
* Tags renamed

* Spec updated to add response bodies

* Adds correct tag to response body routes

* Adds response body autogen tests

* Adds pos test cases, removes dead code

* Adds and uses api_test_partial

* Samples regenerated
2022-07-24 12:33:23 -07:00
Bogdan Ilchyshyn
96b7d35e97
fixing FetchError to be compatible with esnext (#13004)
closes #12927
2022-07-24 14:09:27 +02:00
William Cheng
b6ca40031a
fix issue when discriminator property is an enum string (#13001) 2022-07-24 17:55:08 +08:00
y-tomida
3eb3337c2b
[typescript] Don't throw exception when additionalProperties is set to true (#13003)
* use DefaultCodegen#getSchemaAdditionalProperties instead of Schema#getAdditionalProperties

* add testcase

* fix comment
2022-07-24 09:48:00 +02:00
William Cheng
7649f659c4
add model caching to php generators (#12997) 2022-07-24 09:20:31 +08:00
William Cheng
86882e01ee
add model caching to kotlin generators (#12998) 2022-07-24 09:19:47 +08:00
William Cheng
3ac88e95ed
Add option to customize operationId in R client (#13000)
* add option to customize operationId in r client

* update doc
2022-07-24 09:19:18 +08:00
Thomas Hansen
7c7ac2f0d3
[PHP] double curly braces bugfix (#12999)
* [PHP] Small bugfix: fix punctual double curly bracket usage, to make it consistent with the code around

* [AUTOGENERATED] update samples
2022-07-24 09:18:48 +08:00
Ruben Fiszel
0b31bd4705
[Typescript] Support text/plain by ObjectSerializer.parse (#12888)
* [Typescript] Support text/plain by ObjectSerializer.parse

* generate-samples

* update samples

* clean up spaces

Co-authored-by: William Cheng <wing328hk@gmail.com>
2022-07-23 20:38:36 +08:00
William Cheng
fe8fbaf923
[Rust Server] Generate operations where tags require sanitization (#12996)
* [Rust Server] Render operations for sanitized tags

* [Rust Server] Add test for sanitized tags

* Update samples

Co-authored-by: Richard Whitehouse <richard.whitehouse@metaswitch.com>
2022-07-23 14:25:05 +08:00
William Cheng
a87da6ad3c
update undertow to newer version (#12994) 2022-07-23 14:07:15 +08:00
William Cheng
5cf1ba3841
add additonal dependencies for xml in resttemplate (#12995) 2022-07-23 14:06:09 +08:00
William Cheng
ee8566260c
[JAVA] Generated api client doesn't work for plain text body types (#12993)
Co-authored-by: Ilya Kuchmin <kuchmin@haulmont.com>
2022-07-23 13:07:26 +08:00
Vladimir V. Bychkov
434464c898
dateLibrary java8 does works now with xml (#8444)
Co-authored-by: v.bychkov <v.bychkov@betterbits.de>
2022-07-23 12:39:28 +08:00
eoghanbdoyle
153cfeb7ae
Fix crash in extractBodyContent when using large headers (#10636)
If you send a request with a body and a header greater than 255 characters long there will be an exception. The session->fetch will not return the body in the synchronous way expected.
2022-07-23 12:27:11 +08:00
Tristan Lins
2e6cdb5196
[typescript-fetch] Convert dates only if target type is a Date (#11685) 2022-07-23 11:45:36 +08:00
Mauro Valota
ea7a319a65
[java] fixed pojo template for nullable fields (#12630)
* [java] fixed pojo template for nullable fields

* regenerated samples
2022-07-23 11:19:48 +08:00
Oleh Kurpiak
9f2f36c4fb
[Java][WebClient] return ResponseSpec to manually control response handling (#12843) 2022-07-23 10:20:06 +08:00
William Cheng
6c9cd65e73
add model caching in perl client gen (#12992) 2022-07-23 09:19:24 +08:00
William Cheng
00ef7a8590
add schema mapping support to perl (#12991) 2022-07-23 08:56:47 +08:00
Bruno Coelho
c03cf178c9
[swift][client] reduce unnecessary public api (#12975)
* [swift][client] reduce unnecessary public api

* [swift][client] reduce unnecessary public api
2022-07-23 08:39:34 +08:00
Max K
08c4a35162
[aspnetcore] Added dotnet outdated to READMEs (#12981)
* Added dotnet outdated to READMEs

* Update samples
2022-07-23 08:37:17 +08:00
William Cheng
e4b268613c
[R] fix assignment, better doc (#12979)
* better code format

* fix doc comment, remove blank line

* ignore .lintr in rbuildignore
2022-07-22 13:08:01 +08:00
William Cheng
6e6c2f9a0e
add http basic test in r client (#12978) 2022-07-22 10:01:48 +08:00
William Cheng
f26985c239
add http bearer auth support to R client (#12974) 2022-07-22 09:44:05 +08:00
Justin Black
d1c2230709
v303 unit test spec, adds post json request bodies (#12875)
* Adds post request body routes and test data to spec

* Sample regenerated

* Adds tags and post endpoints

* Uses refs to tests examples in requestBodies

* Stops passing in test_examples into generate_operation

* Adds testCases to MediaType

* Adds refs to test cases in media type

* Adds post request body examples

* Fixes enum 1 ingestion of 1.0

* Only generates test examples when they exist

* Regenerates samples
2022-07-21 15:34:49 -07:00
Ry Bobko
1b6069f984
[Typescript-Angular] Handle runtime-generated injected BASE_PATH in Typescript-Angular services (#12936)
* handle array of strings for basePath

* handle string[] for basePath when generated from APP_INITIALIZER

* updated samples

* updated samples
2022-07-21 16:41:31 +02:00
Paul Hagedorn
298ccfcfd8
[typescript-nestjs] Upgrade to NestJS v8 (#12937)
* feat(typescript-nestjs): upgrade to nestjs v8

Set default nestVersion to 8.0.0

* chore(typescript-nestjs): create typescript-nestjs-v8-provided-in-root.yaml and add it to samples.json

* chore(typescript-nestjs): generate samples

* docs(typescript-nestjs): generate docs

* chore(typescript-nestjs): re-generate samples
2022-07-21 13:41:32 +02:00
William Cheng
eeb1711f9f
Add support for string response deserialization (#12964) 2022-07-21 15:18:59 +08:00
William Cheng
17ba8304b6
Update swashbuckle version to 6.4.0 (#12965)
* update swashbuckle to newer version

* use newer version of swashbuckle for all aspnet versions
2022-07-21 15:10:32 +08:00
William Cheng
c26e19cbc0 Revert "Add support for string response deserialization (#12910)"
This reverts commit b8524bee232a55e28693354ab543b91e3f65629a.
2022-07-21 12:58:46 +08:00
Emanuele Saccomandi
b8524bee23
Add support for string response deserialization (#12910)
* Add support for string response deserialization

* updated samples

* updated samples

* realigned to master

* fix: errors were not getting thrown

* updated samples

* fix: errors were not getting thrown

* updated samples
2022-07-21 12:45:50 +08:00
Martin Delille
cf58ac0583
[cpp-qt-client] Minor fixes (#12951)
* foreach => for

* Fix PetStore.pro

* Whitespace formatting
2022-07-21 12:03:22 +08:00
Max K
17c021df5b
Added support for inheritance in Swashbuckle in ASP.NET Core (#12856)
* Added support for inheritance in Swashbuckle

* Updated to new API
2022-07-21 11:44:46 +08:00
William Cheng
2248baa5ea
add schema mapping support to ruby client generator (#12962) 2022-07-21 11:38:27 +08:00
William Cheng
f898b072ba
add model caching to ruby client generator (#12961) 2022-07-21 11:22:41 +08:00
Yohei Kitamura
9b154bb437
[Ruby] Enhance Faraday middleware support (#12873) 2022-07-21 11:01:14 +08:00
Paul Hagedorn
33ec914e6a
fix(typescript-nestjs): initialize queryParameters in Service if auth uses apikey but has no other query parameters (#12940) 2022-07-20 19:33:09 +02:00