17446 Commits

Author SHA1 Message Date
Oren Samuel
4ec14706df
#12445 - avoid resolving ref schema to the actual schema for enum (#12446)
* #12445 - avoid resolving ref schema to the actual schema for enum

* #12445 - update samples
2022-05-24 23:51:08 +08:00
CodeR
e598d1afe7
OkHttpClient - fix enum properties in requests #12450 (#12452)
Co-authored-by: Grigory Tihonov <grigory.tihonov@lamoda.ru>
2022-05-24 16:22:16 +01:00
CodeR
73b0762f36
OkHttpClient - replacing static client usage with client Injection #12444 (#12448)
Co-authored-by: Grigory Tihonov <grigory.tihonov@lamoda.ru>
2022-05-24 13:51:47 +01:00
William Cheng
de8decc9f5
throw exception when failed to refresh token (#12431) 2022-05-24 14:51:39 +08:00
Justin Black
4d544994fd
[python-experimental] BoolSchema + NoneSchema improvements (#12411)
* Moves is_none is_true is_false methods into base mixins, adds tests

* Improves docstrings
2022-05-23 15:55:49 -07:00
William Cheng
74f377ec40 fix url to merge 2022-05-23 11:45:05 +08:00
William Cheng
7a0ff20c19
add Merge as bronze spnosor (#12427) 2022-05-22 17:47:56 +08:00
William Cheng
ccd64ce203
update gson to newer version in kotlin templates (#12425) 2022-05-22 14:13:03 +08:00
William Cheng
06688cdfe1
update gson to 2.8.9 in android httpclient (#12423) 2022-05-21 22:02:05 +08:00
William Cheng
8804ba50ed
update android dependencies to newer versions (#12421) 2022-05-21 17:04:42 +08:00
William Cheng
e0bd2440f1
[Java] Update rest-assured dependencies (#12420)
* update rest-assure dependencies in java client

* update rest assured version

* update gradle, sbt build files
2022-05-21 16:18:39 +08:00
William Cheng
4cf66a4871 update cwiki samples 2022-05-21 15:13:34 +08:00
chatelao
11462e7fde
Add - Status colors in Wiki, Example per parameter (#12394)
This are small (but visually nice) improvements:
- Add colors: 200 = green, 300 = blue, 400 = red
- Add an example per parameter for better understanding
2022-05-21 14:49:19 +08:00
William Cheng
c270640a36
Better support for inline schemas in parameters (#12369)
* better support for inline schema in parameters

* fix parameter model type

* add new method for model

* minor update

* fix isModelWithProperties

* fix is model check

* null check for properties

* inline parameter enhance with python-experimental fix [WIP] (#12397)

* Uses unaliasSchema rather than ModelUtils.getReferencedSchema

* Fixes python-experimental, delays param schema setting

* Samples regenerated

* Adds parameterModelName setting back in

* Samples regenerated

* removes needToSetSchema

* Sets schema differently depending on if inline model resolver is used

* Adds step for getting ref schema

* Samples regen

* fix test

* bug fix for rust generator

Co-authored-by: Justin Black <spacether@users.noreply.github.com>
2022-05-20 20:25:15 +08:00
cachescrubber
8be490d130
Upgrade Spring Boot to 2.5.14 / 2.7.0 (#12408)
* Upgrade Spring Boot to 2.5.14 / 2.7.0

* Generate Samples
2022-05-20 20:24:13 +08:00
William Cheng
fb8eac1258 update java samples 2022-05-20 17:17:58 +08:00
Arvind Krishnakumar
874853e408
Remove javadoc comment for unthrown IOException (#12401) 2022-05-20 17:08:22 +08:00
William Cheng
e24527b4d7
remove errorObjectSubtype from java client genreator (#12405) 2022-05-20 17:06:17 +08:00
Miroslav Oujeský
3f788d3d77
[java][Micronaut] generator fixes (#11803)
* Fix ConfigurableAuthorization package name import to come from configuration

* Fix Micronaut @Consumes and @Produces annotations, allow multiple content types

* Fix security schemes rendering and Micronaut @Authentication pairing with application settings when special characters are present

* Updated samples

* Code review feedback

* Add xml to dependencies and fix tests

Co-authored-by: Andriy Dmytruk <andriy.dmytruk@oracle.com>
2022-05-20 13:24:48 +08:00
Katsuyuki Omuro
c3976a4a4d
Apply style and explode values from encoding for form-encoded request body parameters (#12162) 2022-05-19 23:13:54 +08:00
William Cheng
5578f178d4 add a link to youtube video 2022-05-19 11:16:48 +08:00
Andriy Dmytruk
0ad970f4cf
[Micronaut] Improvements for Server and Client (#12297)
* Add the applicationName parameter to support generation of multiple clients

* Change indentation in application.yml to double-space

* Update swagger annotations version, and option to choose not to generate the annotations

* Generate operations only in the first defined tag class for micronaut server

* Improve micronaut client options by setting the correct default values in the JavaMicronautAbstractCodegen constructor

* Fix visitor pattern having abstract method in non-abstract class. Update samples

* Update server sample FILES

* Minor refactor

* Fix for context path
2022-05-19 02:03:45 +08:00
William Cheng
3597621fbc
[R] Use snake_case in method parameter names (#12390)
* use snake_case in method parameter names

* update doc
2022-05-19 01:23:27 +08:00
Nicolai Davies
f6263b5e08
Add Trifork to list of companies using OpenAPI generator (#12393) 2022-05-19 01:11:25 +08:00
Mikko Maunu
3a102e0e5b
Added linefeed between @Generated-annotation and start of class declaration. fixes #10746 (#12181) 2022-05-18 15:45:34 +08:00
Auke Schrijnen
a57509695a
[java-micronaut] Return HTTP 501 in default implementation (#12365)
The default controller implementation returns an empty response. This
might result in unexpected behavior when an operation isn't implemented,
as a consumer of the API there is no way to notice the difference
between an unimplemented method and an actual empty response.

By changing the default behavior to return HTTP 501 Not Implemented the
user will be made aware of unimplemented methods. The former default
behavior, returning an empty response by default, can be activated with
a configuration option.
2022-05-18 14:17:22 +08:00
Nick Dunne
d38cb1b37a
[java][spring] added springdoc support for service metadata and security (#12346)
* added springdoc config file to codegen

* added mustache template for springdoc config

* changed type to all caps so it can be used in the template

* added security scheme details
caveat: didn't add oauth2 flows

* removed url not supported by codegensecurity

* Fixed default doc provider in help message

* refactored config file generation test
and added springdoc test

* removed default codegen modification
implemented through booleans in template instead

* added new/updated generator files

* fixed escaping of description

* fixed appDescription in template
removed if and fixed escaping

* updated generated files again

* updated to springdoc in generator docs
2022-05-18 11:20:54 +08:00
William Cheng
35dc6451e4
update .RBuildIgnore (#12383) 2022-05-17 16:07:26 +08:00
William Cheng
de149fc16b
add outscale logo (#12381) 2022-05-17 13:33:29 +08:00
William Cheng
1b7b4ede44
[R] fix warnings in DESCRIPTION (#12380)
* fix warnings in description

* fix maintainer

* update test with jsonlite method instead
2022-05-17 13:25:16 +08:00
Noah Fontes
3e3a527fc2
Add Puppet to user showcase (#12378) 2022-05-17 11:02:49 +08:00
William Cheng
13496aad5b
[R] Add import in the namespace file (#12372)
* add import in the namespace file

* add import r6
2022-05-17 10:52:39 +08:00
William Cheng
040482e977
add support to download response as file (#12373) 2022-05-17 10:52:09 +08:00
Nikos Epping
1225c4c613
[typescript-fetch] Support Sets in query parameters (when uniqueItems=true) (#12318)
* [typescript-fetch] Support Sets in query parameters

* [typescript-fetch] Update sample builds
2022-05-16 09:56:42 +02:00
Artem Kuzmenko
5221ca2b0a
feat(typescript): add repository field to package.json (#12292) 2022-05-16 09:54:37 +02:00
Thi
559a2618df
Qt cpp client primitives types body (#12301)
* Fixxed issue with numeric primitive in body

* Aded primitives to cpp-qt/petstore.yaml (test ressource)

* generated  samples via  ./bin/generate-samples.sh
2022-05-15 17:48:19 +08:00
Thi
d23e95a3df
[Cpp][Qt][Client] Fix CMakeLists.txt, Qt::Gui, Find_Package(OpenSSL) (#11967)
* [cpp-qt-client] Fix CMakeLists.txt

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

* Updated samples
2022-05-15 17:43:27 +08:00
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