17446 Commits

Author SHA1 Message Date
Martin Delille
6931f15e80
Add martindelille to code owners (#12328) 2022-05-10 17:28:44 +08:00
William Cheng
884a74550a
add tests to set httpUserAgent in r client (#12321) 2022-05-10 17:23:13 +08:00
William Cheng
68360cab92
better error messages for oneOf in java okhttp-gson (#12311) 2022-05-10 17:16:02 +08:00
William Cheng
ad3b5f7045
[Inline model resolver] various improvements (#12293)
* better handling of requestbody in the inline resolver

* remove commented code

* better request body naming

* fix unique naming

* minor code format change

* removed additional underscore from names, fix test

* more fixes, update tests

* fix all tests

* undo changes to default codegen

* update samples

* update python tests

* add new files

* update samples
2022-05-10 17:13:57 +08:00
William Cheng
4d0da694ba update github token in travis 2022-05-10 16:00:36 +08:00
William Cheng
cb86b509ef
add virtualansoftware as sponsor (#12320) 2022-05-10 01:18:25 +08:00
Rory Dungan
fd5ad7f895
Fix issue with fastapi generator converting all fields to snake_case (#12261)
* Fix issue with python-fastapi generator converting all fields to snake_case

* Update Python-FastAPI sample

Co-authored-by: Rory Dungan <contact@rorydungan.com>
2022-05-10 01:08:59 +08:00
jsoizo
d242a98343
[scala-akka-http-server] model default value when field is not required (#12068)
* scala-akka-http-server model default value when field is not required

* scala-akka-http-server sample generate

* delete bin/configs/other/scala-akka-http-server.yaml
2022-05-10 00:43:09 +08:00
Yuriy Belenko
e639dad66a
[php] Add PSR-12 rule set (#12302)
* Upgrade PHPCS-Fixer to 3.5 version

This version requires PHP 7.4 or 8.0 which perfectly meets our supported
PHP right now.

* Rename config file to .php-cs-fixer.dist.php

This way it can be overwritten with local file(same name without "dist"
part). Also it's recommended filename from the package doc.

* Add PSR12 rule set to config

I've changed config file a bit to look like example from the doc.
Ref: https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/HEAD/doc/config.rst

* Ignore new cache format

* Remove blank line after class opening

* Set constants in models public

* Refresh samples
2022-05-10 00:34:38 +08:00
William Cheng
8d4c9e2472 comment out cpp qt tests 2022-05-08 15:16:08 +08:00
Thi
b7d079b7e3
[Cpp][Qt][client] Fixed issue with unique items in OpenAPI schema (#11954)
* [cpp-qt-client] Fix CMakeLists.txt

Changed: Always add Qt5::Gui to build
Added: find_package for OpenSSL (if not Apple)

* Revert "[cpp-qt-client] Fix CMakeLists.txt"

This reverts commit db5c3423b92410115f4c3d5f8b6ca0cabb58f9f6.

* Revert "Revert "[cpp-qt-client] Fix CMakeLists.txt""

This reverts commit c4f055f3cdf666b3ce265fa14e297c3b11d803d9.

* [Cpp][Qt][client] Fixed unique items in OpenAPI schema

Added equal operator for schema objects
Added qhash Operator

in api template
depending on unique items
output.insert(val) -- QSet (unique items)
or
ouput.appen(val) -- QList (not unique items)

* Added petstore with unique items to tests schemas, added config for [cpp][qt] and this schema

* Run ./bin/generate-samples.sh bin/configs/cpp-qt-client* for new schemas and tests

* Update bin/configs/cpp-qt-client-petstore-unique.yaml

Co-authored-by: Martin Delille <martin@delille.org>

* Update bin/configs/cpp-qt-client-petstore-unique.yaml

Co-authored-by: Martin Delille <martin@delille.org>

* Fixxed typo in name of spec file, too.

* Moved petstore_plus_unique.json to correct directory  (2_0 -> 3_0 )

moved open api specification
rerun generate samples

* Deleted obsolete samples output

* Removed obsolete files   (unique items petstore yaml definition and samples)

* Updated samples output for cpp-qt

Co-authored-by: Martin Delille <martin@delille.org>
2022-05-08 15:14:41 +08:00
Jon Schoning
8511ce360c
[haskell-http-client] Update haskell-http-client generator to Aeson 2.x (#12309)
* Update haskell-http-client generator to Aeson 2.x

Co-authored-by: Andrea Cognolato <andrecogno@hotmail.it>
2022-05-07 17:53:52 -05:00
sullis
aac6ce2302
maven-javadoc-plugin 3.4.0 (#12308) 2022-05-07 15:24:38 -07:00
Eugene Aleinikov
1cca865a69
Move Feign Client url parameter under condition. (#12250) 2022-05-07 00:10:52 +08:00
sullis
8f70d49ff3
mockito 4.5.1 (#12299) 2022-05-05 14:09:04 -07:00
William Cheng
d97c152c14
Add new method to detect self-referencing in ModelUtils (#12294)
* fix unaliasing object schema, add tests

* add self reference check

* add self reference check, add test
2022-05-05 16:22:52 +08:00
William Cheng
b02fd28ba6 update doc 2022-05-05 01:11:35 +08:00
Johan Sjöblom
706791f43f
[Bug][Kotlin-client] Can now handle path param of type list (#12244)
* Bugfix Kotlin-client: Can now handle path param of type list for jvm-volley and multiplatform. Also cleaning up generated code

* Adding samples to github workflow. Deleting old workflow

* Tweaking setup of jvm-volley

* Updating samples

Co-authored-by: William Cheng <wing328hk@gmail.com>
2022-05-05 01:04:20 +08:00
William Cheng
ee038e7e6c update kotlin client tests 2022-05-05 00:52:35 +08:00
Sergey Vladimirov
6bd7036ff8
[kotlin-client] Add ktor library with Jackson and GSON processing support (#11838) 2022-05-05 00:50:45 +08:00
Miklos Szots
bee9c79e5a
[Scala][sttp] various bug fixes (#12254)
* avoid using deprecated enum naming

* map anytype to any for sttp

* circe codecs and enum fixes

* regenerated the samples
2022-05-05 00:40:58 +08:00
William Cheng
1e48c95d48 update samples 2022-05-03 13:38:23 +08:00
William Cheng
af60ec7d04 comment out website update due to failure 2022-05-03 12:29:51 +08:00
Justin Black
f3436b455a
Adds fix and test for spec version detection (#12290) 2022-05-02 20:39:14 -07:00
Ruslan
c17679060b
Fix for cpp-rest-sdk-client generator producing uncompilable code if there is a "-" (or other characters like a space etc.) in a property name of an object. (#12288) 2022-05-03 11:26:03 +08:00
Justin Black
8fc85530e8
[python-experimental] fixes delete endpoint with no body use case (#12287)
* Generates delete_coffee endpoint

* Adds test of delete_coffee

* Removes .run files

* Fixes bug and adds test

* Reverts version file

* Reverts function sig

* Removes comma
2022-05-02 18:42:13 -07:00
ppngn
153e1db8a1
[C++][Pistache] Fixes for struct model (#12006)
* [C++][Pistache] fix Wconversion warning

* [C++][Pistache] fix struct model compilation with std::optional

* [C++][Pistache] Add validation to struct model
2022-05-02 00:11:19 +08:00
Mateusz Szychowski (Muttley)
e342513391
[C++][Pistache] Add support for validating arrays, use full namespace type with custom types (#12221)
fixes #11246
2022-05-01 23:53:48 +08:00
William Cheng
8dc67836be
fix version with leading v in rust client (#12284) 2022-05-01 21:02:50 +08:00
Johannes
3e5ec3c6ef
Allow the baseUrl of elixir APIs to be overridden (#12268)
* Allow the baseUrl of elixir APIs to be overridden

* Run generator

* Add missing `:`

* Update modules/openapi-generator/src/main/resources/elixir/connection.ex.mustache

Co-authored-by: Michael Ramstein <633688+mrmstn@users.noreply.github.com>

* Generate sample with new change

Co-authored-by: Joe Eifert <joe@databerg.rocks>
Co-authored-by: Michael Ramstein <633688+mrmstn@users.noreply.github.com>
2022-05-01 15:48:52 +08:00
William Cheng
036e22b359 Merge branch 'master' of https://github.com/OpenAPITools/openapi-generator 2022-05-01 15:29:31 +08:00
William Cheng
e8742e8850 update samples 2022-05-01 15:23:04 +08:00
Dave Syer
d03115fc20
Fix directory name to match package (#12270) 2022-05-01 15:21:14 +08:00
Johan Sjöblom
21d8d3a26e
Kotlin spring version bump (#12281)
* [Kotlin-Spring] Bumping dependency versions

* Downgrading Springfox, updating annotation

* Updating samples

* Updating unrelated samples
2022-05-01 15:20:18 +08:00
sullis
19c854b113
maven-jar-plugin 3.2.2 (#12282) 2022-05-01 15:14:01 +08:00
fedeitc
5458e1f999
[cpp-rest-sdk-client] handling datetime type (#12247)
A specialization for the shared_ptr<datetime> data type was added to
ModelBase member functions fromString, fromJson, toJson and
toHttpContent.

This should fix compilation errors on generated source code.
See https://github.com/coinapi/coinapi-sdk/pull/130
2022-04-30 17:41:47 +08:00
William Cheng
324020f09d update samples 2022-04-30 17:21:15 +08:00
Oliver Ford
0c6302a313
Fix mypy error type annotation needed (#12272) 2022-04-30 17:11:08 +08:00
William Cheng
0b2cb06229
[CircleCI] improve execution time (#12253)
* add cache folder, remove mvn install

* debug

* update test

* fix cache
2022-04-30 16:43:39 +08:00
Peter Leibiger
89d17e2845
[dart] Rename dart-dio-next to dart-dio and make it stable (#12258) 2022-04-30 16:43:11 +08:00
Hui Yu
2ca6cf7d62
[C][Client] Eliminate compiler warnings (#12260) 2022-04-30 16:41:26 +08:00
sullis
d1aec232f6
scala maven plugin 4.6.1 (#12279) 2022-04-30 16:12:47 +08:00
sullis
f9b1ca2c50
slf4j 1.7.36 (#12278) 2022-04-29 21:52:45 -07:00
sullis
38139d3078
rewrite 7.22.0 (#12276) 2022-04-29 20:39:18 -07:00
sullis
4bc1710403
maven-compiler-plugin 3.10.1 (#12277) 2022-04-29 19:56:41 -07:00
Johan Sjöblom
8950a9a3c0
[BUG][Kotlin-client] Handling default values of parameters (#12255)
* Bugfix Kotlin-client: Handling default values of parameters

* Adding object
2022-04-29 15:26:29 +01:00
William Cheng
b6a8037f62 update samples 2022-04-27 20:45:24 +08:00
Marc Miltenberger
e1dcc68587
Python: Add cookie name to cookie header (#11189)
* Add cookie name to cookie header

* Fix whitespace
2022-04-27 20:39:35 +08:00
William Cheng
da765032cc
add Tencent to the company list (#12252) 2022-04-27 16:26:05 +08:00
Michael Marner
e6be5543dd
[Dart-Dio-Next]#9082 Add json_serializable serialization option (#9980)
* PoC json_serializable in dart-dio-next

* Move build.yaml template into json_serializable dir

* Undo implicit-dynamic change

* Fix automatic formatting

* Treat non-required fields as nullable

* Make class properties final

* Fix error introduced by merging in master

* Fix map creation when deserializing

* Exclude built files from analysis

* Add new dio import props

* Fix broken merge

* Fix configuration of nullable properties

* Only add api_util import if using built value

* Add config param to set properties as final

* Fix syntax error due to merge

* Update to simplified dio configuration

* Add missing api constructor template

* Fix import for multipart files

* Fix inclusion of library deserialize template

* Update docs

* Remove trailing newline from class

* Fix whitespace in generated templates

* FIx built value generation problem caused by merge conflicts

* Escape dollar signs in strings

* Handle enums

* Config for json_serializable sample

* Generate sample for json_serializable

* Revert "Escape dollar signs in strings"

This reverts commit 6e2a3aeea0450518433f2a07fe7cda92272b18a5.

* Use raw strings when dealing with enum values

* Add json_serializable Maven module ind fix number based enums

* regenerate all tests

* Update docs and fix wrong maven module

* add a beta hint to json_serializable option

* Update minimum dart sdk with json serializable

* Use dart 2.14 when testing Dart samples

* Update codegen to remove analysis errors in output

Co-authored-by: Peter Leibiger <kuhnroyal@gmail.com>
2022-04-27 16:12:22 +08:00