William Cheng
587bd56655
add mavencentral to build.gradle ( #1674 )
2018-12-15 00:22:11 +08:00
William Cheng
774013c7e1
Better OpenAPI spec v3 support: allOf, anyOf, oneOf ( #1360 )
...
* add oneOf support to Ruby
* add anyOf support to ruby client
* add discriminator support to ruby client
* fix typo
* update samples, fix NPE
* better format in ruby generator
* fix test cases, disable mapping test
* fix update script, update samples
* add test, fix mapping
* update exit code
* reenabled discriminator test
* remove duplicated properties
* add test for duplicated properties
* update samples, add new spec
* fix ruby test cases
* fix hasMore after removing duplicates
* refactor method, comment out haskell client test
* fix hasMore and update samples
* fix parent detection
* fix discriminator check
* [haskell-http-client] need to use {{vars}}{{required}} instead of {{requiredVars}}
* remove deprecated methods in default codegen (#1031 )
* regenerate samples
* remove commented code
2018-12-07 00:30:20 +08:00
Kiran-Sivakumar
0a33ad465f
[Java][okhttp-gson] Fix bug when performing OAuth token retry ( #1576 )
...
* Fix access token retry bug
* Update petstore samples
* Remove newline
* Import Pair and List in RetryingOAuth template
* Update petstore samples
* Update petstore samples
2018-12-04 18:33:10 +08:00
William Cheng
b226f52d13
Merge remote-tracking branch 'origin' into 4.0.x
2018-11-30 10:16:16 +08:00
Kiran-Sivakumar
9df70798b3
[Java][okhttp-gson] Add option to employ builders for API requests ( #1341 )
...
* Generate APIs that use the builder pattern
* Add option to use builders for API requests
* Fix template spacing
* Add new sample-generation script and generated samples
* Update docs
* Add new sample-generation script for Windows
* Replace config option with vendor extension
* Remove useBuildersForApiRequests config option
* Remove builders sample-generation scripts
* Replace config option with vendor extension in api_test template
* Remove okhttp-gson-requestBuilders sample
* Rename x-builders-for-api-requests to x-group-parameters
* Add modified api_doc.mustache under okhttp-gson resources
* Add modified README.mustache under okhttp-gson resources
* Update petstore samples
* Fix FakeApiTest.java in petstore samples
* Add whitespace to rerun checks
* Remove whitespace to rerun tests
* Fix FakeApiTest.java in parcelable petstore sample
* Update versions in samples
* Update versions in samples
2018-11-28 17:53:36 +08:00
William Cheng
46a4ffe64c
Skip model generation if it's a top-level map or array ( #1296 )
...
* update samples
* remove string boolean map spec
* add logic to skip array alias being generated as model
* fix alias to array
* remove unused ruby files
* remove unused ruby (oas3) files
* unalias response schema
* fix NPE when no model defined
* fix ruby openapi3 script
* update samples
* add global openapi, schemas for unaliasing
* minor code cleanup/refactoring using globalSchemas
* Revert "minor code cleanup/refactoring using globalSchemas"
This reverts commit 20a2bbc6fc4267a0e0768dcf5f15d4194ce9647b.
2018-11-26 22:01:53 +08:00
William Cheng
7db12aa4af
Merge remote-tracking branch 'origin' into 4.0.x
2018-11-24 17:48:17 +08:00
William Cheng
2b58f6737a
fix typo in java client docstring ( #1494 )
2018-11-19 21:14:03 +08:00
William Cheng
2bcf5b2263
Merge remote-tracking branch 'origin/3.4.x' into 4.0.x
2018-11-15 17:49:44 +08:00
William Cheng
a87a544bf5
Merge remote-tracking branch 'origin/master' into 3.4.x
2018-11-15 17:11:01 +08:00
William Cheng
8d9542207a
Prepare 3.3.4 snapshot ( #1450 )
...
* change version to 3.3.4-snapshot
* updat readme
* update samples
2018-11-15 16:21:15 +08:00
William Cheng
c7349c7f88
Add top level x-group-parameters support ( #1405 )
...
* add top level x-group-parameters support
* update petstore samples
2018-11-12 14:25:32 +08:00
William Cheng
e6c97a1bc1
Merge remote-tracking branch 'origin/3.4.x' into 4.0.x
2018-11-08 18:18:12 +08:00
William Cheng
a186efed35
Merge remote-tracking branch 'origin/master' into 3.4.x
2018-11-08 18:17:29 +08:00
Kiran-Sivakumar
078b04deac
[Java][okhttp-gson] Add new ApiClient constructors for access token retry ( #1319 )
...
* Add new ApiClient constructors for access token retry
* Update samples
* Update security samples
2018-11-03 22:10:16 +08:00
William Cheng
02e85cc417
Prepare v3.3.3-SNAPSHOT ( #1355 )
...
* prepare 3.3.3-snapshot
* update petstore samples
2018-11-01 10:42:26 +08:00
William Cheng
aced89ff8b
Add group parameter support to PHP client ( #1337 )
...
* add group parameter support to php template
* more update for group parameter
* fix call to protect function
* fix missing $
* update based on feedback
* create fake endpoint to test group parameters
* sync fake petstore spec v2, v3
* fix php doc for group parameters
* update petstore samples
* update fake petstore spec v2
* update petstore samples
* fix spec and update samples
2018-10-29 15:42:32 +08:00
William Cheng
3482a0a993
Merge remote-tracking branch 'origin/master' into 3.4.x
2018-10-26 21:04:25 +08:00
William Cheng
4a47acce19
Merge remote-tracking branch 'origin/3.4.x' into 4.0.x
2018-10-26 18:41:58 +08:00
William Cheng
9422dea149
Merge remote-tracking branch 'origin/master' into 3.4.x
2018-10-26 18:40:37 +08:00
Dec12 | Fujigon
bb056ccf3d
[General] fix InlineModelResolver's logic and use openapi-generator's InlineModelResolver, so that nested "required" works correctly ( #1200 )
...
* fix InlineModelResolver's logis and use openapi-generator's InlineModelResolver, so that nested "required" works correctly
* add "required" to nested model schema
* update ensure-up-to-date to include openapi v3's jaxrs
* change test required field
* fix sample shell script, hide timestamp
* fix NPE
* move test case to petstore-with-fake-endpoints-models-for-testing.yaml
* fix jaxrs-jersey (oas3) example generate shell script to use petstore-with-fake-endpoints-models-for-testing.yaml
* add default value
* re-generate samples
2018-10-23 16:51:55 +08:00
moreginger
33a1ac4397
Don't generate unused ApiException class for java/webclient. ( #1165 )
2018-10-21 22:01:47 +08:00
William Cheng
c1afba7194
Fix jackson-databind security issue ( #1259 )
...
* fix jackson databind security issue
* fix java jersey 1 dependency
* fix java webclient dep
2018-10-18 16:29:38 +08:00
William Cheng
9e3c7781bb
Merge remote-tracking branch 'origin/3.4.x' into 4.0.x
2018-10-16 16:08:11 +08:00
William Cheng
257a97b6cd
update petstore samples
2018-10-16 13:19:40 +08:00
William Cheng
ffd72767af
Prepare 3.3.2 snapshot version ( #1249 )
...
* release_version_update
* update readme
* restore felix version
* update petstore samples
2018-10-16 10:53:12 +08:00
Kiran-Sivakumar
7d58f308d9
[Java][okhttp-gson] Fix bug when specifying grant-type (flow) for OAuth token retry ( #1183 )
...
* Fix bug when specifying grant-type for OAuth token retry
* Update samples
* Update security samples
2018-10-08 17:39:10 +08:00
William Cheng
999f472e4b
Refactor default and example values in Java generators ( #1045 )
...
* fix default, example for java okhttp
* update java feign samples
* update samples, doc
* add new doc for dart-jaguar
* update model template
* update jaxrs spec model
* update resteasy sample
* update java samples
2018-10-07 03:56:16 +08:00
William Cheng
5490bb8e9c
update petstore
2018-10-03 18:36:12 +08:00
William Cheng
4e8844273b
Prepare 3.3.1-SNAPSHOT ( #1154 )
...
* update version
* update petstore samples
2018-10-02 09:40:27 +08:00
Kiran-Sivakumar
0e045bee1b
[okhttp-gson] Add support for OAuth access token retry ( #1058 )
...
* Add support for access token retry in okhttp-gson lib
* Update expected number of generated files in test
* Update samples
* Update security samples
* Fix default user-agent and update samples
2018-09-20 19:29:59 +08:00
William Cheng
1b2f3fbfb6
Fix alias to map response ( #1067 )
...
* fix response reference to map
* update samples
* add null check for openapi
2018-09-20 19:29:33 +08:00
Vladislav Cheparin
5fc76ba834
[Java][Retrofit2] The part name is not added to the annotation ( #1029 )
...
* fixed retrofit2/formParams.mustache
* added play26 to retrofit2-all.sh
* fixed samples
2018-09-16 16:00:38 +08:00
William Cheng
95302efdfc
Add option to set Feign version ( #1005 )
...
* Add option to set Feign version
* add java feign 9x to CI
* update usage for Play
* fix duplicated artifactId
2018-09-13 10:32:09 +08:00
Ilya Hrankoŭski
aa29219f8c
[Java][Feign] Add support for Feign 10 ( #977 ) ( #988 )
2018-09-09 18:11:59 +08:00
William Cheng
39c734fc25
Better code format for Java (okhttp-gson) client ( #971 )
...
* better code format for java okhttp client
* update java petstore samples
2018-09-06 14:24:14 +08:00
Marco
f7b807f980
[Java][Webclient ]Avoid double encoding on query params ( #924 )
...
* call build() with encoded = true
* Regenerate client
2018-09-04 15:58:14 +08:00
William Cheng
e7c05f16db
update samples, re-enable ensure-up-to-date
2018-08-30 20:25:56 +08:00
William Cheng
3b2951b305
Merge remote-tracking branch 'origin/master' into 3.3.x
2018-08-30 19:39:09 +08:00
William Cheng
b8db2af4bb
Update swagger annotation version in Java clients ( #915 )
...
* update swagger annotation version in java client
* add java retrofit2 play 2.6 to java petstore all bin script
* remove empty line in pom.xml
2018-08-29 16:43:41 +08:00
lukoyanov
4558e49c7e
[Java] Retrofit2 Play! Framework 2.6.x support ( #901 )
...
* added play framework 2.6 support
* generated petstore sample
* generated petstore sample #2
* generated petstore sample #3
* Revert "generated petstore sample #3 "
* generated petstore sample #4
* fixed circleci configs
* one more time samples regen
2018-08-28 22:48:05 +08:00
Hugo Barrigas
37fd4264ac
[JAVA][Webclient] Add constructor to allow custom WebClient to be passed into ApiClient ( #882 )
...
* add constructor to allow custom webclient to be passed into ApiClient
2018-08-25 15:22:36 +02:00
Marco
39e9206976
[Java][Webclient] Init authentication on ApiClient instantiation ( #887 )
2018-08-25 14:22:16 +02:00
William Cheng
704c1b8893
update petstore samples
2018-08-23 18:52:34 +08:00
William Cheng
780ba49da1
Merge remote-tracking branch 'origin/3.3.x' into 4.0.x
2018-08-23 18:39:54 +08:00
William Cheng
3d06900e68
Prepare 3.2.3-SNAPSHOT version ( #870 )
2018-08-22 13:39:20 +02:00
Jens Oberender
9bc335b35e
Forbiddenapis check and fix ( #672 )
...
* Added forbiddenapis check and fixed the findings in the normal code
* Fixed forbiddenapi findings in java templates and samples.
* Generated all samples for Java.
2018-08-22 06:06:01 +02:00
ccozzolino
2044c36398
Adjust client response handler to be backwards compatible with older versions of Vert.x (<3.5) ( #854 )
2018-08-21 13:12:18 +08:00
Victor Orlovsky
0191210145
[Java][Rest-assured] Fix generated javadoc and "swagger-annotations" improvement ( #831 )
...
Added "@Api" swagger annotation, "nickname" for ApiOperation.
Fixed javadock for rest-assured client.
2018-08-17 18:15:02 +02:00
Victor Orlovsky
e7340bfe5b
[Java][Rest-assured] Fix "invokerPackage" in ApiClient, remove unnecessary @Authorization ( #822 )
2018-08-16 06:15:15 +02:00