9299 Commits

Author SHA1 Message Date
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
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
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
Thomas Hansen
c0ad6357df
[PHP] ObjectSerializerTest: add tests for ObjectSerializer::deserialize() associative arrays bugfix (#12989)
* [PHP] ObjectSerializerTest.php: code cleanup

* [PHP] ObjectSerializerTest.php: added tests for ::deserialize() associative arrays bugfix - related to PR #12849
2022-07-23 10:07:21 +08:00
Thomas Hansen
219b32b543
[PERL] Fix bug on test script (#12983) 2022-07-23 08:56:24 +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
Yohei Kitamura
9b154bb437
[Ruby] Enhance Faraday middleware support (#12873) 2022-07-21 11:01:14 +08:00
William Cheng
05f4792df7
[csharp-netcore] fix OAuth2 integration when using httpclient library (#12954)
* Update RestSharp to v108

* Add OAuth2 Application (client_credentials) authentication

* Run generators and fix typos

* Undo accidental python and rust changes

* Add documentation, fix authenticator bug, and fix user agent bug

* Fix tests

Missed some changes in the mustache templates.
Also had to update the `netcoreapp2.0` test project to `netcoreapp3.1` for compatibility with RestSharp

* Switch HttpUtility to WebUtility for compatibility

* skip oauth file generation for httpclient

* fix templates

* remove files, regenerate samples

* add reference to system.web

Co-authored-by: Jared Bates <Jared.Bates@sight-sound.com>
2022-07-20 20:30:56 +08:00
Jared Bates
2dcc319e13
[csharp-netcore] Update RestSharp and add client_credentials auth support (#12789)
* Update RestSharp to v108

* Add OAuth2 Application (client_credentials) authentication

* Run generators and fix typos

* Undo accidental python and rust changes

* Add documentation, fix authenticator bug, and fix user agent bug

* Fix tests

Missed some changes in the mustache templates.
Also had to update the `netcoreapp2.0` test project to `netcoreapp3.1` for compatibility with RestSharp

* Switch HttpUtility to WebUtility for compatibility
2022-07-20 19:25:29 +08:00
William Cheng
6d44f97d6c
Add tests for spring boot with implicit headers but no annotation library (#12943)
* add tests for spring boot with implicit headers but no annotation library

* test in workflow

* update samples
2022-07-20 14:11:45 +08:00
devhl-labs
92193f7159
Adds isInnerEnum to CodegenProperty (#12860)
* added nonNullableVars

* added return property to operation

* added return property to operation

* build samples

* added inner enum

* build samples

* added a comment
2022-07-20 01:41:17 +08:00
Bruno Coelho
8d62e597ae
[kotlin][client] Kotlinx Serialization code formating (#12922)
* [kotlin][client] Kotlinx Serialization cleanup

* [kotlin][client] Kotlinx Serialization cleanup
2022-07-19 14:05:17 +01:00
Bruno Coelho
1a5b5924ed
[Swift][client] update samples (#12923) 2022-07-19 14:03:12 +01:00
stropho
f176716a61
[typescript-axios] avoid stringifying header string values (#12919)
* feat(typescript-axios) don't stringify string headers

* samples
2022-07-19 09:55:34 +02:00
William Cheng
b88666b87a
add uuid test, better hyper test (#12916) 2022-07-19 11:22:29 +08:00
Taufik Rama
4ee336a9da
[Rust] Changed 'UUID' handling into 'uuid' crate (#12895)
* [Rust] Changed 'UUID' handling into 'uuid' crate

* [Rust] updated 'samples/'
2022-07-19 11:03:53 +08:00
Jaemin Park
ed4ed3923f
[cpp-ue4] Fix GET request writes body (OpenAPITools#12833) (#12904)
Co-authored-by: nullbus <nullbus@nm-fc.com>
2022-07-18 17:14:18 +08:00
William Cheng
eb471db7c9
[R] fix a couple warnings reported by lintr (#12903)
* better code format in r client

* update code based on lintr

* update samples
2022-07-17 23:49:37 +08:00
William Cheng
da28e12017 update samples 2022-07-17 23:08:08 +08:00
William Cheng
e05b9746ea
[R] Add lintr (#12902)
* add lintr

* update samples
2022-07-17 17:29:05 +08:00
William Cheng
7216899fe6
Add tests for aspnet core 6.0 pocoModels (#12900)
* add tests for aspnet core 6.0 pocoModels

* update workflow
2022-07-17 16:07:41 +08:00
William Cheng
f05dd12b43
add decimal mapping in perl client gen (#12897) 2022-07-17 13:10:53 +08:00
AnaTofuZ
75895e18bc
Perl: Fix JSONization of ArrayObjects (#12896)
* Perl: fix object to json

* generate samples

* add test case
2022-07-17 12:50:39 +08:00
AnaTofuZ
a9e63f4ce3
Perl: Type coercion for the JSON conversion part of Perl (#12891)
* Perl: separate date and DateTime

- Since the json values to be returned are different for date and DateTime, they are managed separately

* Per: Enforcing Perl types to openAPI types

Perl JSON values return different types depending on the context, so look at openapi's type and modify the type.

* generate samples

* generate docs

* add perl test (json types)
2022-07-16 22:18:51 +08:00