18059 Commits

Author SHA1 Message Date
Jeef
fc7c6d8edb
Changing from scriptName to x-codegen-script-name will render dockerfile correctly because scriptName isn't being set (#10594) 2021-10-16 13:01:40 +08:00
William Cheng
ee9687f38c
update dependencies (#10599) 2021-10-14 18:06:07 +08:00
dependabot[bot]
6922c71080
Bump url-parse from 1.4.4 to 1.5.3 in /website (#10537)
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.4.4 to 1.5.3.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.4.4...1.5.3)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-14 15:01:46 +08:00
dependabot[bot]
d470fd45e4
Bump path-parse from 1.0.6 to 1.0.7 in /website (#10128)
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-14 15:01:36 +08:00
dependabot[bot]
a2cbd26875
Bump postcss from 7.0.7 to 7.0.36 in /website (#9779)
Bumps [postcss](https://github.com/postcss/postcss) from 7.0.7 to 7.0.36.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/7.0.7...7.0.36)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-14 15:01:28 +08:00
dependabot[bot]
a6163a8b8c
Bump lodash from 4.17.15 to 4.17.21 in /website (#9435)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-14 15:01:16 +08:00
yongmingl
b0e2ab67a6
Add hasQueryParamsOrAuth to reflect apiKey in query (#10582)
Compilation fails in generated typescript-angular client when an
`apiKey` is passed in query due to an uninitialised variable.

This change adds `getHasQueryParamsOrAuth()` to reflect if there's at
least one query parameter or passing API keys in query in the
`hasQueryParamsOrAuth` template variable.
2021-10-14 14:16:22 +08:00
William Cheng
2bd2c23115
Revert "[JAVA][jersey2] import the auto generated supporting JSON class only when discriminator is needed (#10557)" (#10597)
This reverts commit 52713b21d452bcc4219793861443b495d2a03213.
2021-10-14 11:41:19 +08:00
Fabio Bombardi
ae86ff7aaf
Kotlin multiplatform updated to fit future Kotlin 1.6.0 release (#10468)
* Update Kotlin Version to 1.6.0-M1
Update Multiplatform Plugin to 1.6.0-M1
Update Gragle to 7.2
Update AGP to 7.0.2

Update samples accordingle

Resolve: https://github.com/OpenAPITools/openapi-generator/issues/10467

* Removes local.properties from kotlin-multiplatform petstore client, that was accidentally added

* Use the latest kotlin stable version 1.5.31

* update samples

Co-authored-by: William Cheng <wing328hk@gmail.com>
2021-10-13 15:56:28 +08:00
Peter Leibiger
34f475f7f7
[dart][dio] Respect import-mappings parameter (#10528)
* first check import mappings before defaulting to model import
* respect primitive types when generating serializes, these can still be models if passed via generator args
2021-10-13 15:55:45 +08:00
Sergii Baitala
71afbf5909
[cpprestsdk] fix string conversion, add integer enum support (#10531)
* [cpprestsdk] fix string conversion

* Support number enums
2021-10-13 15:49:19 +08:00
Dennis Melzer
12d80bfbb5
Fix import for new spring boot version (#9144)
* Fix import for new spring boot version

#8561

* Add new versions

* Fix samples

* Remove unused dependencies

* Revert "Remove unused dependencies"

This reverts commit bdac08b80a64b74affec2cea71b524fcd87a4c1b.

* Add version

* Fix version

* Add hystrix note this depcreated

* Migrate to Junit5

* Trigger build

* Add junit5

* Upgrade to new hystrix starter

* Try to enable hystrix

* Remove hystrix and upgrade to boot 2.5.5

* Remove hystrix

* Revert yaml

* Remove hysterix

* Trigger build

* Update docu

* use 4-space instead of tabs

* remove HystrixCommand

* add back spring-cloud test with oas 3.0 spec

* update samples

Co-authored-by: William Cheng <wing328hk@gmail.com>
2021-10-13 15:29:14 +08:00
agilob
45336be847
Improve version management, update dependencies, remove unused dependencies (#10544)
* Move verion properties to main pom.xml

* Sort properties and remove duplicates

* Use properties for known versions

* Deduplicate versions of maven plugins

* Deduplicate wagon dependencies

* Deduplicate maven targer and source properties

* Explicitly set testng version

* Remove property used once

* Sort lines

* Standardise name of maven version properties

* Upgrade maven-surefire-plugin

* Comment out jackson-datatype-jsr310

* Comment out com.fasterxml.jackson.core:jackson-core:jar:2.10.2:compile

* Remove commented out dependencies

* Rename maven param name

* Remove org.hamcrest:java-hamcrest:jar:2.0.0.0:test

* Bump jacoco

* Upgrade guava, replace deprecated or removed api with vanilla java

* Bump jmustache.version

* Bump jackson.version

* Bump jackson.version and mockito

* Bump testng

* Bump wagon-ssh-external.version

* Downgrade jmustache

* Bump spring boot version and add junit

* Bump maven in wrapper

* Bump apache libs

* Bump dependencies

* Revert checkstyle bump
2021-10-13 14:46:01 +08:00
shayan-eftekhari
843e572a10
[cpp-rest-sdk-client] Serialize boolean parameters as true/false instead of 1/0 (#10554)
* BUG FIX: A missing semicolon in cpp-pistache-server generated code.

* BUG FIX: Provide default values of schema in cpp-pistache-server generated code.

* BUG FIX: Provide default values of schema in cpp-pistache-server generated code.

* Fix a bug in cpprest-sdk generator (Issue #8450)

* Fix a bug in cpprest-sdk generator (Issue #8450)

* Fix a bug in cpprest-sdk generator (Issue #8450)

* Revert "Fix a bug in cpprest-sdk generator (Issue #8450)"

This reverts commit 7d8f842860f94deb78fb519716f9984e1efad878.

* Fix a bug in cpprest-sdk generator (Issue #8450)

* A new overloaded version of parameterToString method is added to the ApiClient class (mustache file) of cpp-rest-sdk-client generator. This new overload accepts bool value and is added to serialize bool values as boolapha instead of integer representation.

* A new overloaded version of parameterToString method is added to the ApiClient class (mustache file) of cpp-rest-sdk-client generator. This new overload accepts bool value and is added to serialize bool values as boolapha instead of integer representation.
2021-10-13 14:16:57 +08:00
Sean Kelly
5defb9a353
[cpp][qt] Start cleanup of cpp qt readme (#10549)
* Update Qt cpp readme

* update sample

* Update indentation and codeblocks

* More cleanup of duplicate/dead content
2021-10-13 14:10:06 +08:00
jens1205
3d0d1d5ed8
rust: replace @ with at_ to allow properties like @type and type at the (#10521)
same time

Co-authored-by: Jens Gersdorf <jens.gersdorf@telekom.de>
2021-10-13 14:01:01 +08:00
Lukas Woodtli
0023f3b7ce
Improve templates for C++ Restbed (#10543)
* Improve templates for C++ Restbed

The templates now generate classes which have virtual functions that can
be overridden to implement handlers.

* Fix missing HTTP methods in generated restbed C++ code

There was a wrong handling of "x-codegen-other-methods".

Change-Id: If6526d2672434beb5ebb0871d84cb80d84c34c38
2021-10-13 13:57:40 +08:00
Nick Ufer
80c3a0e4c3
[php] fix 'mixed' invalid for settype() (#10576)
Signed-off-by: Nick Ufer <nick@ufer.dev>
2021-10-12 16:28:59 +08:00
Ghufran Zahidi
b4206ad249
[csharp-netcore]For conditionalSerialization do not initialize the default value. (#10551)
* added allowDefaultValue flag for conditionSerialization

* update doc

* club the allowDefaultValue flag with ConditionSerialzation.

* fixed the tabs space.

* fixed the tabs space.

* fixed the tabs space.

* update samples, docs

Co-authored-by: William Cheng <wing328hk@gmail.com>
2021-10-12 16:14:14 +08:00
Dai Wentao
6e14fc411f
fix RestTemplate not handling ApiKey in cookie (#10578)
fix Java RestTemplate ApiClient not handling ApiKey in cookie.
2021-10-12 16:09:02 +08:00
agilob
77b72bd0ee
Dart json_serializable: remove experimental generator (#10532) 2021-10-12 16:07:23 +08:00
beytun
52713b21d4
[JAVA][jersey2] import the auto generated supporting JSON class only when discriminator is needed (#10557)
* Import the auto generated supporting JSON class only when discriminator is needed

* Generate samples again
2021-10-12 16:05:38 +08:00
RomainPruvostMHH
48f3af19dd
Fix compilation issues in the CSharpOperationTest class (#10574)
Co-authored-by: rpruvost <rpruvost@ITEM-S78402.emea.msad.sopra>
2021-10-11 21:10:55 +08:00
William Cheng
4b62b55877
use implementation, add min version of maven, gradle (#10571) 2021-10-11 21:10:04 +08:00
Dmitry Olyenyov
efa032abdb
Fixes #10568 (#10569)
Do'not output &str for isString if it is also isUuid
2021-10-09 18:33:43 +08:00
William Cheng
c51f2eb8fe
[Java][CI] fail fast, add path (#10570)
* fail fast, add path

* include more samples for testing

* remove path to trigger build

* Revert "remove path to trigger build"

This reverts commit c7f4c0a4c0f4d812b006bf2794a32304eded5df7.

* remove samples
2021-10-09 18:31:41 +08:00
agilob
c2186a0b0d
Flash: remove (#10535) 2021-10-09 15:51:45 +08:00
Hugo Alves
331b61dc1c
[Java][Feign] Expose response headers for feign client (#10507)
* Add .circleci/config.yml

* Add the property exposeResponseHeaders to feign client

This new property indicates if the feign client should expose the response headers on the API class.

* Generate new docs for exposeResponseHeaders additional property

* Rename HeaderAwareResponse to HttpResponse

* Update samples

* Refactor the implementation to use the same approach as the c# generator.
Creates a new feign operation with the suffix WithHttpInfo, this operation returns the response encapsulated in a HttpResponse class.
The HttpResponse class contains the decoded body and the response headers

* Refactor the implementation to use the same approach as the c# generator.
Generate samples

* Refactor the implementation to use the same approach as the c# generator.
Generate docs

* Use Void instead of void for HttpResponse parameterized type
2021-10-09 15:50:55 +08:00
Hyunjin Jeong
e1f7fb0fbd
add-word-in-docs (#10567) 2021-10-09 15:47:57 +08:00
Mickael Magniez
ba55332f4c
fix: don't send just " " in body, send an empty string (#10561)
Co-authored-by: Mickael MAGNIEZ <mmagniez@veepee.com>
2021-10-09 15:45:30 +08:00
agilob
cd9bd969d7
Remove eclipse formatter plugin (#10547) 2021-10-09 15:44:53 +08:00
Radosław Zawartko
d20f251f8b
Another company using OpenAPI Generator (#10562)
* Update users.yml

Elastic Email is using OpenAPI Generator for it's client libraries

* Elastic Email logo

Co-authored-by: radzaw <radoslaw.zawartko@elasticemail.com>
2021-10-09 15:42:16 +08:00
William Cheng
08296c2b1d
Ruby: Fix deprecation warning for Faraday (#10559)
* Fix deprecation warning for Faraday

* test only ruby

* Revert "test only ruby"

This reverts commit 2ca650e66becab1042b954b782f219232d2ae9ff.
2021-10-08 12:06:53 +08:00
Oleg Orlov
8b8654facc
Fix deprecation warning for Faraday (#10558)
To avoid this warnings while running rspecs
```
WARNING: `Faraday::Connection#basic_auth` is deprecated; it will be removed in version 2.0.
While initializing your connection, use `#request(:basic_auth, ...)` instead.
See https://lostisland.github.io/faraday/middleware/authentication for more usage info.
```
2021-10-08 11:37:39 +08:00
William Cheng
96c65fea61
[Java] add an option to customize gradle.properties (#10540)
* add an option to customize gradle properties

* add more info to gradle.properties
2021-10-08 11:20:50 +08:00
William Cheng
20ccf36c50
Add Gradle tests in Github actions (#10550)
* add github actions to test gradle

* use bin/sh

* remove branch name

* trigger build failure

* retest branch

* Revert "retest branch"

This reverts commit b121887ede4fdeeeaf770bfc3ccc78ca0d85db19.

* Revert "trigger build failure"

This reverts commit fce4d6f4626401fc3a85cd1dfdc45ddcea8b46e5.
2021-10-08 10:49:23 +08:00
William Cheng
6c5f6d2400
[java] Update Gradle to 7.2 (#10538)
* update gradle to 7.2

* update samples

* use gradle-7.2-bin.zip instead
2021-10-08 10:48:27 +08:00
agilob
5b1b74e48d
Dart-jaguar: remove (#10534) 2021-10-08 10:47:17 +08:00
William Cheng
59ddcc31ab update samples 2021-10-06 12:13:24 +08:00
William Cheng
0bfa28f844 Merge remote-tracking branch 'origin/master' into 6.0.x 2021-10-06 12:00:02 +08:00
agilob
8d7be74b79
Dart json_serializable: remove experimental generator (#10533) 2021-10-06 01:38:50 +08:00
William Cheng
72cec10edf
Fix Windows build failure in some environments (#10529)
* update surefire to newer version

* more fixes

* update pet.proto

* update model protobuf template

* add charset

* set line separator

* set proper line break in proto test

* minor fix

* use UTF-8

* use FileUtils.contentEquals

* remove line break

* remove line breaks

* revert utf-8 change
2021-10-05 20:37:24 +08:00
Bodo Graumann
9aadd7724c
Add message and more context to RequiredError (#10530) 2021-10-05 12:41:49 +02:00
andrew-matteson
22d98c177d
Correct a dependency resolution failure in generated angular typescript packages for Angular 12 (#10525)
* Update version

* Rebuild sample
2021-10-05 10:14:58 +02:00
Josh Burton
f5e8f54b21
[dart-dio-next] Adds an option for using the dio_http package (#10497)
* [dart-dio] Adds an option for using the dio_http package

Relates to #10305

* [dart-dio-next] Generates new dio_http sample

* [dart-dio-next] renames dio_http sample, adds pom.xml

* [dart-dio-next] Removes executions not required
2021-10-05 14:03:48 +08:00
RomainPruvostMHH
1735ab9d27
[Java] Replace Java EE 8 dependencies by Jakarta EE 8 (#10513)
* Migrate javax.annotation:javax.annotation-api to
jakarta.annotation:jakarta.annotation-api:1.3.5

* Migrate javax.annotation:javax.annotation-api to
jakarta.annotation:jakarta.annotation-api:1.3.5 for sbt

* Migrate javax.annotation:javax.annotation-api to
jakarta.annotation:jakarta.annotation-api:1.3.5 for gradle

* Commit samples files after the execution of the command
"generate-samples.sh for configs java and kotlin

* Delete org.jboss.spec.javax.annotation:jboss-annotations-api_1.2_spec
from the exclusion section of org.jboss.resteasy:resteasy-client in the
resteasy module because jboss-annotations-api_1.2_spec isn't a
transitive dependency

* Migrate javax.validation:validation-api to
jakarta.validation:jakarta.validation-api:2.0.2 for maven

* Migrate javax.validation:validation-api to
jakarta.validation:jakarta.validation-api:2.0.2 for gradle

* Migrate javax.validation:validation-api to
jakarta.validation:jakarta.validation-api:2.0.2 for sbt

* Commit samples files after the execution of the command
"generate-samples.sh for configs java, spring, jaxrs and kotlin

* Migrate javax.ws.rs:javax.ws.rs-api to
jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 for maven

* Commit samples files after the execution of the command
"generate-samples.sh for configs java, spring, jaxrs and kotlin

* Migrate javax.json.bind:javax.json.bind-api to
jakarta.json.bind:jakarta.json.bind-api:1.0.2 for maven

* Commit samples files after the execution of the command
"generate-samples.sh for configs java, spring, jaxrs and kotlin

* Migrate javax.json:javax.json-api to jakarta.json:jakarta.json-api:1.1.6
for maven

* Commit samples files after the execution of the command
"generate-samples.sh for configs java, spring, jaxrs and kotlin

* Migrate javax.xml.bind:jaxb-api to
jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 for maven

* Commit samples files after the execution of the command
"generate-samples.sh for configs java, spring, jaxrs and kotlin

* Migrate javax.el:el-api to jakarta.el:jakarta.el-api:3.0.3 for maven

* Migrate javax.servlet:servlet-api to
jakarta.servlet:jakarta.servlet-api:4.0.4 for maven

* Delete the property servlet-api-version in pom files because it is
useless

* Commit samples files after the execution of the command
"generate-samples.sh for configs java, spring, jaxrs and kotlin

* Migrate javax.activation:activation to
jakarta.activation:jakarta.activation-api:1.2.2 for maven

* Delete javax.activation:activation from the exclusion section of
org.jboss.resteasy:resteasy-client in the resteasy module because
javax.activation:activation isn't a transitive dependency

* Commit samples files after the execution of the command
"generate-samples.sh for configs java, spring, jaxrs and kotlin

* Fix the name of property jakarta.activation-version

* Fix a missing property 'jakarta-annotation-version' in
JavaJaxRS/resteasy/pom.mustache

* generate samples

* Fix version value of jakarta.validation-api artifact in
Java/libraries/rest-assured/pom.mustache

* Fix missing property jakarta-annotation-version in
jaxrs-resteasy/eap/pom.mustache

* generate samples

* Revert changes in sample files after running the command
generate-samples.sh in gitBash

* Fix files in
samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8

* Replace the old dependency javax.validation:validation-api by the new
Jakarta EE 8 jakarta.validation:jakarta.validation-api in
openapi-generator-online

Co-authored-by: rpruvost <rpruvost@ITEM-S78402.emea.msad.sopra>
Co-authored-by: rpruvost <romain.pruvost@soprasteria.com>
2021-10-05 09:47:29 +08:00
William Cheng
e1d1ced117
regenreate package-lock.json for ts axios (#10520) 2021-10-04 21:16:21 +08:00
dependabot[bot]
9421b3d3c2
Bump eskatos/gradle-command-action from 1 to 2 (#10491)
Bumps [eskatos/gradle-command-action](https://github.com/eskatos/gradle-command-action) from 1 to 2.
- [Release notes](https://github.com/eskatos/gradle-command-action/releases)
- [Commits](https://github.com/eskatos/gradle-command-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: eskatos/gradle-command-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-04 17:13:24 +08:00
John Gallagher
2ceccfbe3c
[REQ] [RUBY] [FARADAY] Allow middleware to be configured (#10495)
* feat: allow configuring middleware in setup

* fix: stop requiring Faraday middleware unnecessarily

* chore: regenerate petstore samples

* chore: regenerate openapi3 client

* chore: ci fails so rebuild
2021-10-04 17:09:21 +08:00
madsvonqualen
45e0b461ba
[Java] [jaxrs-spec] Add @JsonTypeName to Pojo's (#10489)
* Add @JsonTypeName annotation to pojo's in order to make Jackson deserialize superclass instances

* Generate samples
2021-10-04 16:43:29 +08:00