William Cheng
81fdc2abbd
Fix jackson-databind security issue ( #3945 )
...
* fix jackson security issue
* update groovy petstore sample
2019-09-24 13:56:59 +08:00
William Cheng
5eb67d471b
Merge remote-tracking branch 'origin/4.2.x' into 5.0.x
2019-09-22 21:00:38 +08:00
William Cheng
3019b5a5e1
Merge remote-tracking branch 'origin/master' into 4.2.x
2019-09-22 14:18:07 +08:00
William Cheng
ea029b4029
update doc, samples ( #3875 )
2019-09-11 21:17:11 +08:00
William Cheng
3ebefccfa9
Prepare v4.1.2 release ( #3873 )
...
* update samples
* update date
2019-09-11 18:33:27 +08:00
Benjamin Simpson
239d68df36
[Java][okhttp-gson] fix failure to deserialize floats ( #3846 )
...
* fixed bug where nullApi.java would be generated. Instead, generated DefaultApi.java to match the default path /{pathParam}
* fix to bug #3157
* update samples
2019-09-07 12:36:19 +08:00
Quim Muntal
8f13b88ed9
Support custom git repository ( #3757 )
...
* add gitHost param to GeneratorSettings and related
* parameterize gitHost in READMEs
* parameterize gitHost in go.mod
* parameterize gitHost in git_push
* update petstore samples
* run ./bin/utils/export_docs_generators.sh
* run meta-codehen.sh
* Revert "run meta-codehen.sh"
This reverts commit d6d579f6159186531257cdfdd73b9caf9e9ffeba.
* Revert "run ./bin/utils/export_docs_generators.sh"
This reverts commit 1b81538198d4319fd1b4e97447303e3cc0e8dc99.
* Revert "update petstore samples"
This reverts commit f513add88396707f6991ae2e4920359583ec88f1.
* run ensure-up-to-date
2019-09-03 21:35:49 +08:00
Jérémie Bresson
d21b3390fe
[java] add jackson-databind-nullable dependency to the gradle.build file ( #3793 )
...
* Add jackson-databind-nullable
* Update samples
2019-08-30 13:51:50 +08:00
Jérémie Bresson
87727de079
[java-client][java-jaxrs-server][jackson] Add @JsonPropertyOrder to models ( #3778 )
2019-08-29 10:40:34 +02:00
William Cheng
a8fe5d355c
Merge remote-tracking branch 'origin/4.2.x' into 5.0.x
2019-08-29 14:48:00 +08:00
William Cheng
9182784955
Merge remote-tracking branch 'origin/master' into 4.2.x
2019-08-28 14:01:20 +08:00
William Cheng
d0d545bbdd
Prepare 4.1.2 snapshot ( #3758 )
...
* update pom
* update samples
* update ts axios samples
2019-08-26 22:13:12 +08:00
Slavek Kabrda
5182955cca
[Java][client] make it possible to send explicit nulls for nullable fields ( #3474 )
...
* [Java][client] make it possible to send explicit nulls for nullable fields
* Regenerate samples
2019-08-16 16:26:06 +08:00
Jérémie Bresson
a4811c7850
[java-client] set collection to null when not required ( #3615 )
...
* [java][model] set collection to null when not required
* Fix tests
* Fix trailing whitespace
* generate samples
* Restore 'de.thetaphi' plugin in pom.xml
2019-08-15 22:01:19 +08:00
William Cheng
c3535cf9ca
Add test cases to cover different collection formats ( #3640 )
...
* add test cases to cover different collection format
* add space params to retrofit 1.x
* add space params to retrofit 2.x
* rename url to localVarUrl
* fix exception in haskell servant
2019-08-15 11:09:12 +08:00
William Cheng
1c31dce4bd
Merge remote-tracking branch 'origin/4.2.x' into 5.0.x
2019-08-12 00:22:19 +08:00
William Cheng
01222268e8
update samples
2019-08-11 18:56:47 +08:00
William Cheng
5956569e7a
Prepare 4.1.1-SNAPSHOT ( #3603 )
...
* update pom
* update samples
* update pom
2019-08-10 09:41:08 +08:00
Jérémie Bresson
1ab7b9ceb6
[java][client][jax-rs] Add a constant for Jackson @JsonProperty ( #3560 )
2019-08-09 11:01:23 +08:00
William Cheng
3e027c61da
Merge remote-tracking branch 'origin/master' into 5.0.x
2019-07-27 20:53:38 +08:00
William Cheng
45fcf3792a
[Java] add nullable support to the clients ( #3453 )
...
* add nullable support, update samples
* update samples
2019-07-26 10:00:27 +08:00
kassim
ee538be964
[Java] add nullable annotation to pojo template for non-required fields ( #3409 )
...
* add nullable annotation to pojo template
* add jsr305 dependency
* jsr305 dependency on all java build.gradle files
* jsr305 dependency on all java pom.xml files
* update samples
* more pom updates
* more sample/template updates
2019-07-25 10:35:18 +08:00
William Cheng
0b7d3c4590
Merge remote-tracking branch 'origin/master' into 5.0.x
2019-07-10 11:41:13 +08:00
William Cheng
753be28782
Merge remote-tracking branch 'origin/4.1.x'
2019-07-09 23:56:30 +08:00
William Cheng
203fc812bd
v4.0.3 release ( #3315 )
...
* update snapshot version
* update doc
* comment out haskell servant server test
2019-07-09 20:44:31 +08:00
William Cheng
e9809294a5
update travis, support java9+ ( #3279 )
2019-07-05 23:32:10 +08:00
William Cheng
8e11fd9fe4
Prepare 4.0.3-SNAPSHOT ( #3185 )
...
* update version to 4.0.3-SNAPSHOT
* update readme
* update gradle, maven plugin
* update release schedule
* update samples
2019-06-20 18:50:49 +08:00
William Cheng
46da7fe0e9
Merge remote-tracking branch 'origin/4.1.x' into 5.0.x
2019-06-03 09:28:51 +08:00
William Cheng
7e457f7e41
sync master
2019-06-03 00:32:13 +08:00
William Cheng
8d3a1a5add
Merge remote-tracking branch 'origin/master' into 4.1.x
2019-06-03 00:06:43 +08:00
Jérémie Bresson
dc81574f2b
Update version to 4.0.2-SNAPSHOT ( #3047 )
...
* Update version to 4.0.2-SNAPSHOT
* Update samples
* Change AppVeyor script (test of gradle sample)
* Fix release version bump script (gradle plugin, sample poms)
* Include sonatype snapshots in maven examples which reference 4.0.2-SNAPSHOT
2019-06-01 21:32:44 -04:00
William Cheng
5c6824f569
update feign to the latest stable version ( #2999 )
2019-05-27 15:11:02 +08:00
William Cheng
d243a6b96d
Update jackson-databind to address security issues ( #2993 )
...
* update jackson-databind to address security issue
* update java vertx client dev, sample
* update dep, samples
* update retrofit play2 dep
2019-05-25 18:24:37 +08:00
William Cheng
94fc0474b9
update version 5.0.0-snapshot and samples
2019-05-15 01:54:29 +08:00
William Cheng
24187b8186
update petstore samples
2019-05-15 00:10:03 +08:00
William Cheng
cbe39ba881
Set version to 4.0.1-SNAPSHOT ( #2882 )
2019-05-14 10:28:32 +02:00
William Cheng
dc0c24b955
Minor wording change ( #2875 )
...
* better wording for version of openapi doc
* update petstore samples
2019-05-13 15:59:59 +08:00
Matthieu Berthomé
ee43cc1520
handle composed schemas in InlineModelResolver ( #2112 )
...
* handle composed schemas in InlineModelResolver
* fix unit test -> TestUtils.parseSpec
* update samples
* fix samples
* update samples
* update samples
* add new files
2019-05-08 10:19:15 +08:00
Thibaud Sowa
0889b8ec13
Support OAuth without 'expires_in' data ( #2563 )
...
[Java][Feign] Support OAuth without 'expires_in' data
2019-04-02 17:43:56 +08:00
William Cheng
3a0d520c38
improve indentation, update dependencies ( #2521 )
2019-03-27 23:02:03 +08:00
Lukáš Vasek
a079f70fb2
[JAVA] Use specified data type in enum's fromValue instead of string ( #2347 )
...
* Use specified data type in enum's fromValue instead of string
* updated samples
* update samples
* remoe String.valueOf
2019-03-27 22:10:02 +08:00
davidwcarlson
7ab73ff587
Instantiate HttpBearerToken authentications if so declared and add helper methods. ( #2485 )
2019-03-27 14:07:43 +08:00
Justin Black
b67318ef21
Adds spec additionalProperties + nullable examples ( #2405 )
...
* Adds v2 spec additionalproperties examples, adds v3 spec nulllable model example, updates samples
* Remaining samples updates
* Adds csharp generator update to handle models with multilevel parent types, which works for the AdditionalPropertiesObject model, samples updated
2019-03-20 15:31:28 +08:00
Vincent Devos
a6a1264f25
[GRADLE] upgrade to 2.16 in java/scala/androit client to fix Vulnerability ( #2416 )
2019-03-17 17:40:11 +08:00
William Cheng
f2002b25da
[Python] remove default value from being fallback to example ( #2213 )
...
* remove example fallback
* reset test case
2019-02-22 20:44:27 +08:00
davidwcarlson
ef7b28de00
fix 457 Support for Bearer Auth ( #1930 )
...
* fix #457 by introducing an HttpBearerAuth object
See https://github.com/OpenAPITools/openapi-generator/issues/457
Also https://github.com/OpenAPITools/openapi-generator/issues/1446 for typescript, https://github.com/OpenAPITools/openapi-generator/issues/1577 for python
Specs defined as follows currently generate BasicAuth and send an "Authorization: Basic [base64Encode(username + ":" + password)]" header
components:
securitySchemes:
bearer:
type: http
scheme: bearer
This change will generate code which uses a new HttpBearerAuth class, which will send a "Authorization: [scheme] [accessToken]" header.
This change is slightly larger and more impactful than simply using OAuth for bearerBearer, but it allows for scheme values other than bearer.
This fix was enabled by the recent commit of 80ca67cfda
This PR is an alternative to https://github.com/OpenAPITools/openapi-generator/pull/1972
* update petstore samples
* Update HttpBearerAuth mustache templates and samples
* correct the expected number of generated java client files
* update the retrofit2 HttpBearerAuth template and samples
* Add resttemplate-specific HttpBearerAuth mustache and samples
* add vertx-specific HttpBearerAuth template and samples
* add java webclient-specific HttpBearerAuth template and samples
2019-02-09 22:51:44 +08:00
Jérémie Bresson
c871e3bc81
[core] Handle referenced enum case correctly ( #2001 )
...
* [core] Handle referenced enum case correctly
* Update all samples
* Fix compile error after merge
2019-01-30 11:07:58 +08:00
William Cheng
887b688014
[Java] Generate OAuth related files only if OAuth security schema is used ( #1907 )
...
* optionally include oauth files in java client
* fix java templates
* fix tests
* fix CI issues
2019-01-28 11:05:37 +08:00
Justin Black
9ec594eec5
[Spec] adds XmlItem model and route for xml testing ( #1883 )
...
* Adds xmlitem model and route, rest-assured Api suffix fix, updates pytest and pytest-cov versions
* Adds python client sample files
* Adds samples update
* Adds rest-assured sample client update
* Adds sample updates in ensure-up-to-date
* Changes rest-assured files back to master version, removes fix for issue #13
* Updates samples
2019-01-26 17:26:38 +08:00
William Cheng
f415332406
update java default value ( #1949 )
2019-01-21 01:47:49 +08:00