19065 Commits

Author SHA1 Message Date
Bradley Friedman
0948a95b8c
[cpp-ue4] bug-fix issue 10205: response json parsing logging a error to unreal console when there is no actual parsing problem (#10221)
* [cpp-ue4] Fixed a bug where respose json parsing was not taking 'writeOnly' or 'required' into account and was logging a error to the console when there was no actual problem.

* [cpp-ue4] Moved comments to tail of line in response to improve code appearance.  Added baseName to comments for clarity of reading.

* [cpp-ue4] removed comments from template from previous commits.

* [cpp-ue4] added back ParseSuccess flag flip for TOptional, as the templated version of TryGetJsonValue does actually handle the absense of the field correctly for TOptional.

* [cpp-ue4] reworked looping in model source template's FromJson to better mirror the loop in WriteJson

* [cpp-ue4] more concise version of writeOnly change to FromJson
2021-08-26 17:04:47 +08:00
Lazar Prijović
691a10ad8e
[cpp-ue4] Fix model generation for arbitrary-typed values (#10267)
* Replace AnyType declaration with FJsonValue

* Rebuild docs
2021-08-26 16:35:25 +08:00
Nathan Baulch
9c66d33171
[go] Support for response status code ranges (#10075) 2021-08-25 11:15:23 +08:00
William Cheng
badfdccd5e update doc 2021-08-25 10:25:11 +08:00
Aanisha Mishra
67fbb1081e
Skip setting readOnly properties with default values in model constructors (#10196)
* skipReadonlyPropertiesInInt flag to go SDK

* minor amendments

* update docs for go
2021-08-25 10:21:02 +08:00
Oliver B. Fischer
309dccd52e
[#10251] Improve the documentation of the option serializationLibrary (#10252)
This commit tries to improve the documentation on the relationship
between the two configuration options library and serializationLibrary.
2021-08-25 10:19:01 +08:00
fvlad
bf57d58db1
Move Java Spring Springfox ApiIgnore under conditions (#9644)
* Remove SpringFox @ApiIgnore imports and reference class directly

* Update generated sources

Co-authored-by: Vladislav Fefelov <vladislavf@playtika.com>
2021-08-25 10:17:29 +08:00
Thomas Zeeman
f2b50faeec
Fix unchecked conversion (#10246)
* Fix unchecked conversion

Update restttemplate and webclient templates to use <>-operator.
Also update samples.

* Update samples
2021-08-25 10:09:53 +08:00
Thomas Zeeman
cab2244646
Typescript-axios: Replace the non-space whitespace 2021-08-24 18:48:07 +02:00
William Cheng
158649aff9
Add oneOfProps, allOfProps, anyOfProps to Codegen model (#10231)
* add oneOfProps, allOfProps, anyOfProps to codegen model

* remove commented code
2021-08-23 12:03:34 +08:00
William Cheng
bcd2459a8d add a link to medium article 2021-08-23 10:56:40 +08:00
Vikrant Balyan
f2e994271f
[Python] fixes __setitem__ throwing an error for composed instance (#10197)
* adding a test for issues 10083

* commiting the generated files

* fix for the setattr issue

* commit generated files

Co-authored-by: Aanisha Mishra <aanisha.mishra05@gmail.com>
2021-08-22 10:44:19 -07:00
devhl-labs
bee8b615a5
[abstract csharp] Ensure enum dataType is not nullable string (#9891)
* ensure enum cannot be a nullable string

* build samples

* removed errounous changes meant for another pr

* build samples

* build samples

* reordered test parameters for readability

* build samples

* deleted eroneous sample files
2021-08-22 23:40:46 +08:00
Yuriy Belenko
84a6e31fb4
[php-slim4] Follow PDS skeleton (#9189)
* Rename test folder to tests

* Put index.php and .htaccess into public

* Refresh samples
2021-08-22 16:13:48 +08:00
William Cheng
f7bc2aa995 k6: use spaces instead of tab, remove trailing spaces, update samples 2021-08-22 16:11:52 +08:00
Michal H Siemaszko
6844737d07
[ K6 Generator ] Support for extracting examples defined at parameter level of Swagger/OpenAPI specification, plus minor fixes (#9750)
* K6 Generator - Support for extracting parameter examples & minor fixes

* K6 Generator - Support for extracting parameter examples & minor fixes

PR checklist: update samples

* K6 Generator - Support for extracting parameter examples & minor fixes

Fixed indentation
2021-08-22 16:02:46 +08:00
William Cheng
d26dd7b9db
Add a link to dzone article 2021-08-22 14:18:33 +08:00
William Cheng
deed7c603b update samples 2021-08-22 13:29:08 +08:00
William Cheng
a6ba8d58d4 Merge branch 'master' of https://github.com/openapitools/openapi-generator 2021-08-22 13:15:28 +08:00
William Cheng
845ce72ecb
Update javascript flowed client's package-lock.json file (#10225)
* add @turkeylurkey as microprofile template creator

* update package-lock.json

* rearrange order, update samples
2021-08-22 13:14:42 +08:00
William Cheng
de1f37cc4d Merge branch 'master' of https://github.com/openapitools/openapi-generator 2021-08-22 11:57:34 +08:00
Johannes Wienke
e89e19e43e
Add a Jandex index to microprofile client packages (#10173)
Quarkus, as one potential target for using the Java microprofile client
generator, requires a Jandex index to be present in library jars for
discovering beans inside these jars. Therefore, include Jandex index
generation in the pom.xml for microprofile clients as explained here:
https://quarkus.io/guides/cdi-reference#how-to-generate-a-jandex-index

Generating and shipping the index is only a small overhead that is
probably not worth an additional client option.
2021-08-22 11:57:28 +08:00
William Cheng
14c7e80111 add @turkeylurkey as microprofile template creator 2021-08-22 11:56:57 +08:00
Hugo Alves
197cdac1e0
[JAVA][FEIGN] Automatically retry request that fail due to a 401 or 403 (#10021)
* Renew the access token after receiving a 401/403

Feign clients tries to renew the access token after it receives a 401 or 403. It Retries the request 1 time

* Add unit test for exhausted retries

* Update samples
2021-08-22 11:45:04 +08:00
Antoine Reilles
4a9a922abf
java cxf generator should not depend on jaxb when not withXml (#10204)
Only depend on jaxb when whichXml is true.
This makes things much easier with java11
2021-08-22 11:42:56 +08:00
Hippolyte HENRY
5b072ea66b
Add extension to store oneOf/anyOf/allOf objects as full properties (#9977) 2021-08-22 11:35:03 +08:00
William Cheng
90fca17de1
[haskell-yesod] Better code format, mark generator as beta (#10222)
* better code format, mark haskell-yesod as beta

* fix copyright

* update doc
2021-08-22 11:31:38 +08:00
William Cheng
3de5483aa0
[JAVA] Add apache httpclient library to java clients (#10218)
* Add apache java client option

* Add sample apache client config

* Switch serialization library, use time formatter

* Add pom template for apache dependencies

* Add initial implementation of ApiClient using apache

* Add apache api template

Plus switch to TypeReference to handle generic types

* Add support for sending json data

* Generate test stubs with @Ignore

* Add accept header

* Remove unnecessary builder assignments

* Set responseHeaders instance variable

* Switch to general serialize / deserialize functions

* Handle sending url encoded form data

* Split response processing into new method

* Allow requests without body

* Use general HttpResponse interface

If the method doesn't need to close it

* Use clients connection timeout

* Add constructor accepting custom client

* Handle multipart and direct file uploads

* Support file downloading

Based on the implementation in the jersey client

* Handle missing content disposition

* Raise error if body given for an unexpected method

* Use try with resources for response handling

* Remove unused url parameter encode method

* Handle content type parse exception

* Improve response content type handling

Would have had issues with content type headers containing a charset

* Make all set methods return client

* Add basic readme

* Send content type with files

* Set domain and path on cookies

Otherwise they will be excluded from the request

* Use consistent quoting in error messages

* Add generated apache sample

* Add generated docs changes

* update samples

* rename library, update samples, docs

* update readme

Co-authored-by: Harry White <hwhite@atlassian.com>
2021-08-22 11:17:31 +08:00
William Cheng
4fcf1f56fb update samples, doc 2021-08-22 01:49:22 +08:00
Ghufran Zahidi
a71258d7f7
[chsarp-netcore]handle the exception to get correct error message. (#10207)
* handle the exception to get meaningful message.

* minor code format enhancement, update samples

Co-authored-by: William Cheng <wing328hk@gmail.com>
2021-08-22 01:24:24 +08:00
Kenzo Yotsuya
4e3a98cee4
New server generator for Haskell/Yesod (#10193)
* Add a new server generator for Haskell/Yesod

* Fix missing locale
2021-08-21 23:57:18 +08:00
Isaac van Bakel
aff4d2f4c2
Correct #9916, fix Produces instances (#10185)
While the fix in #9916 correctly made endpoint types which did not
produce content return the `NoContent` type, those endpoint still
generated `Produces` instances with the wrong mime types due to not
resetting the `hasProduces` variable. This corrects that fix so that the
`Produces` instance for `MimeNoContent` is generated instead of any
other instance.
2021-08-21 22:52:14 +08:00
Johannes Wienke
f47dc4d84b
Document JSON-B as microprofile client target (#10172)
The documentation for the Java microprofile client wrongly states that
Jackson is used. This commit corrects this to JSON-B.

Relates to: #8015
2021-08-21 22:32:04 +08:00
Esteban Gehring
65e9e92282
enable typescript unit tests (#10211)
* enable typescript unit tests

* disable failing isomorphic fetch tests
2021-08-21 10:04:47 +02:00
Richard Willis
ff13923f55
[typescript-fetch] Fix config getter type issue (#10216)
The return type now matches the config fetchApi type
2021-08-21 08:32:32 +02:00
Kuzma
3fd5e4111f
[Typescript] Add application/x-www-form-urlencoded content support (#9960)
* Add application/x-www-form-urlencoded content support

* cs fix

* cs fix

* add samples

* fix double content type

* fix samples

* fix util.canConsumeForm

* revert unrelated ghanges

* regenerate samples

* change includes to indexof

* regenerate samples

* regenerate samples
2021-08-20 16:07:43 +02:00
Esteban Gehring
8462bf3790
typescript-angular: copy tests to angular 11 samples (#10209) 2021-08-20 13:17:24 +02:00
Esteban Gehring
c772d8292b
typescript-angular: fix angular tests by using in-memory fake backend (#10208) 2021-08-20 11:25:06 +02:00
Marius Møller
9312ed831f
[Typescript-Angular] Fix invalid property in generated code
* fix_issue_10182

* Step 3

* update samples

Co-authored-by: Marius Møller <mm@carbuddii.com>
Co-authored-by: Esteban Gehring <esteban.gehring@bithost.ch>
2021-08-19 19:49:15 +02:00
BigBadBassMan
cf4523fa1b
use specific jms/serializer annotation on simple date fields (#10048) 2021-08-19 13:30:46 +08:00
William Cheng
67cba32d3a
update cpp-ue4 samples (#10194) 2021-08-19 12:24:54 +08:00
Christie Williams
7a64d5912c
AnyType support for ruby generator (#10192) 2021-08-19 12:23:11 +08:00
Bradley Friedman
81269b867d
[cpp-ue4] fix for generating formParams in json requests (#10177)
* fixed non-functional template which assumed a bodyParam requests and made no effort to construct json body from formParams.

* changed spaces to tabs for new lines from last commit

* fixed further indent and tab issues
2021-08-19 12:16:41 +08:00
Vikrant Balyan
245aec14eb
[python] Fixes a breakage while deserializing the read-only attributes (#10155)
* fixes a breakage while deserializing the read-only attributes

* updating generated samples

* taking care of the PR comments

* updating samples

* protect against cases where _spec_property_naming may not be present

* updating samples

* adding tests for this issue

* other generated files

* taking care of the comments

* updating the generated samples

Co-authored-by: Aanisha Mishra <aanisha.mishra05@gmail.com>
2021-08-18 12:01:58 -07:00
Adrien Guerard
a7de7095a7
[Java][Native] Add an async response interceptor in ApiClient (#10027)
Prior to this change, clients generated with asyncNative=true
could not intercept the responses using the existing repsonse
interceptor. This adds another response interceptor solely for
asyncNative=true clients.
2021-08-18 21:11:29 +08:00
Ahmed Fwela
63562dc2c3
[dart-dio-next] Improve handling nullable objects (#10118)
* handle nullable objects

* reverted java code

* Rewrote type generation to be recursive

* checking for isRequired only makes sense in the model class

* remove comments

* remove whitespaces

* regen samples

* use const once https://dart.dev/guides/language/effective-dart/usage#dont-use-const-redundantly

* remove const from mustache

* added space between comma and type

* fixed formatting

* remove commas

* regen samples

* bad whitespaces
2021-08-18 18:28:06 +08:00
William Cheng
97b92e351b replace tabs with spaces 2021-08-18 17:22:38 +08:00
William Cheng
cba76c4b91 Merge branch 'master' of https://github.com/openapitools/openapi-generator 2021-08-18 16:44:09 +08:00
William Cheng
a26422cfa2 update samples 2021-08-18 16:43:55 +08:00
Nikita Karnaukh
2be2195660
fix registering gradle tasks when apply plugin to project (#10079)
Co-authored-by: n.karnaukh <n.karnaukh@tinkoff.ru>
2021-08-18 16:42:27 +08:00