18059 Commits

Author SHA1 Message Date
Yuriy Belenko
023f4e760b
[php] Bump required PHP version to 7.4 (#12359)
* Bump minimal PHP version to 7.4

* Refresh samples
2022-05-15 17:28:31 +08:00
okhowang
245f23339b
[GO] Fix exception in constructExampleCode with oneOf primitive type (#12357) (#12362) 2022-05-15 17:25:23 +08:00
William Cheng
29323f38a3
remove errorObjectType from java okhttp-gson (#12345) 2022-05-13 14:30:17 +08:00
Louis Koo
bc71ed9cbb
[README] add deeproute to company list (#12358)
Signed-off-by: zhucan <zhucan.k8s@gmail.com>
2022-05-13 14:29:20 +08:00
Peter Leibiger
02f16267cf
[dart] Bump min dio version to prevent unused import (#12354) 2022-05-13 14:09:33 +08:00
Louis Koo
556c80c7c9
Add deeporute to list of user (#12356)
Signed-off-by: zhucan <zhucan.k8s@gmail.com>
2022-05-13 14:03:43 +08:00
William Cheng
12cdacabbf
[Inline model resolver] better handling of inline responses and bug fixes (#12353)
* better handling of inline response schemas, bug fixes

* update samples

* add new files

* better code format

* remove unused ruby files

* fix java test

* remove unused js spec files

* remove inline_response_default_test.dart

* fix webclient tests

* fix spring tests
2022-05-13 10:17:59 +08:00
William Cheng
2cf3d3805f remove samples/client/petstore/java/okhttp-gson-nextgen 2022-05-12 23:40:11 +08:00
Jérôme Jutteau
32d15100b0
[README] Add Outscale to companies using OpenAPI Generator (#12352) 2022-05-12 19:45:31 +08:00
William Cheng
d135f1992e
Fix inline allOf in request body (#12348)
* fix inline allof in request body

* update samples
2022-05-12 12:51:36 +08:00
William Cheng
5867845419 update samples 2022-05-11 15:39:38 +08:00
ohl-nemeses
1dce6f140c
12319 avoid StringIndexOutOfBoundsException on empty HttpHeaders (#12327) 2022-05-11 15:36:18 +08:00
bflamand
575b6b4330
Playframework oauth small upgrade (#12332)
* update surefire to newer version

* small tweak to add support for "leeway" when verifying oauth tokens.

Co-authored-by: William Cheng <wing328hk@gmail.com>
Co-authored-by: Bruno Flamand <bflamand@stingray.com>
2022-05-11 15:19:59 +08:00
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