11973 Commits

Author SHA1 Message Date
WILLIAM CHENG
a6ba553281 update groovy templates 2021-11-02 23:10:33 +08:00
WILLIAM CHENG
29be352deb Merge remote-tracking branch 'origin/5.4.x' into 6.0.x 2021-11-02 12:59:35 +08:00
WILLIAM CHENG
025e560985 Merge remote-tracking branch 'origin/master' into 5.4.x 2021-11-02 12:51:52 +08:00
William Cheng
48f81eef45
use IllegalArgumentException instead (#10745) 2021-11-02 12:47:15 +08:00
William Cheng
6cb4b1f6c4
update dependenies version to fix errors (#10757) 2021-11-02 12:39:28 +08:00
Hui Yu
fe90d9c426
[Core] Does not recognize the type "ByteArray" as "String" (#10749)
* Does not recognize the type "ByteArray" as "String"

* Change in default codegen

* Removes redundant updateRequestBodyForString

* Adds testByteArrayTypeInSchemas

Co-authored-by: Justin Black <justin.a.black@gmail.com>
2021-11-01 12:18:21 -07:00
Justin Black
7559b53370
Feat adds python AnyOf send and receive example (#10754)
* Samples regenerated

* Adds AnyOf tx/rx example to python

* Updates samples
2021-11-01 12:15:45 -07:00
WILLIAM CHENG
4f2b5ee36d Merge remote-tracking branch 'origin/5.4.x' into 6.0.x 2021-11-01 00:54:44 +08:00
WILLIAM CHENG
ab603a7322 Merge remote-tracking branch 'origin/master' into 5.4.x 2021-11-01 00:49:06 +08:00
William Cheng
9546a5a61b
[Java][okhttp] better docstring (#10741)
* better docstring in api client, exception, response

* more docstring update
2021-11-01 00:47:32 +08:00
William Cheng
68b5f866ff
update readme with better gradle instruction (#10740) 2021-10-31 23:10:46 +08:00
William Cheng
8551b0af49
[java][jersey2] remove warning using JsonMapper.builder (#10734)
* remove warning usign JsonMapper.builder

* add back java8 tag
2021-10-30 16:55:33 +08:00
William Cheng
c3740dd647
update scribejava to 8.x (#10733) 2021-10-30 14:42:48 +08:00
William Cheng
4e21b61800
[powershell] add file upload support (#10735)
* add file upload support

* comment out c# tests

* Revert "comment out c# tests"

This reverts commit 8f500908fb6366be548e08f437693ec0aa5199d3.
2021-10-30 14:42:11 +08:00
Andreas Metsälä
d130985f85
[ts-angular]: add ts-ignore directives to avoid compilation errors (#10713)
The unused imports don't pass stricter TS compiler settings.
2021-10-29 16:05:23 +02:00
William Cheng
2b2838325c
[java][okhttp-gson] update dependencies in pom.xml (#10709)
* update okhttp-gson pom dependencies

* update samples

* remove jar
2021-10-29 12:36:52 +08:00
William Cheng
d75683aeae
[java][jersey2] update plugins in pom.xml (#10710)
* update jersey2 plugin

* remove jar
2021-10-29 12:36:40 +08:00
Martin Visser
59d5851797
Fix library generation compatibility with Gradle 7.2 (#10716)
* Make Java libraries compatible with Gradle 7

* Make kotlin-spring compatible with Gradle 7

* Update samples to comply to Gradle 7.2

* Generate samples
2021-10-29 12:36:12 +08:00
martinsaison
a33a0fd5c7
[kotlin-spring] change the suffix from ".kt" to "Controller.kt" when generating a controller class (#10671)
* fix: [kotlin-spring] wrong filenames for generated controller classes (#10670)

* fix: [kotlin-spring] wrong filenames for generated controller classes (#10670)

Updated unit test with correct filenames

* fix: [kotlin-spring] wrong filenames for generated controller classes (#10670)

Including files generated by generate-samples.sh and export_docs_generators.sh

Co-authored-by: Martin Saison <khodev@users.noreply.github.com>
2021-10-29 10:06:37 +08:00
Sergii Baitala
bf77570934
[cpprestsdk] CMake build system improvements (#10660)
* cmake install support

* fix option overriding issue

* fix alignment
2021-10-29 09:58:29 +08:00
Justin Black
d1b61bdc04
adds get/setHasMultipleTypes to Java schema classes (#10715)
* Adds getter and setter for hasMultipleTypes and implements it in CodegenModel

* Adds getter and setter to CodegenProperty

* Updates CodegenParameter

* Updates CodegenResponse

* Samples regenerated
2021-10-27 14:16:53 -07:00
William Cheng
1c38bfd5a0
update microprofile to newer version (#10714) 2021-10-27 23:42:46 +08:00
bflamand
27c82e8ed2
Typescript saga immutablejs enhancements and small fixes (#10444)
* first commit: add cli option for saga and records. Added dummy sagas.mustache test file.

* More progress with default values. First prototype for isEntity and isUniqueId.

* record generation complete

* record generation complete

* progress with saga generation

* progress with saga generation

* first fully working saga generation

* merge with latest master

* removed unneeded "items" properties.

* moved global CodegenModel modifications into subclass ExtendedCodegenModel used exclusively by TypescriptFetchClient. Adding missing samples files.

* moved global CodegenOperation modifications into subclass ExtendedCodegenOperation used exclusively by TypescriptFetchClient.

* moved global CodegenProperty modifications into subclass ExtendedCodegenProperty used exclusively by TypescriptFetchClient.

* moved global CodegenParameter modifications into subclass ExtendedCodegenParameter used exclusively by TypescriptFetchClient.

* added the missing "allSagas" export.

* renamed & reworked "meta data response" flags to a more useful general concept of "operation return passthrough"

* added vendor flag keepAsJSObject as escape hatch to support circular dependencies in models and other special cases. Also fixed issues with default values for some records properties.

* added autodetection for passthrough to simplify standardised specs.

* fix small issue with passthrough void

* fix small issues with passthrough void and missing passthrough imports in some cases. Fix issues with enum default values.

* fix small issues with passthrough void and missing passthrough imports in some cases. Fix issues with enum default values.

* Added "reservedRecordField" feature to support remapping fields names that cannot be used in Records. Added missing export to record: toApi().

* added uniqueId inference. Fix small generation when uniqueId property is an array.

* removed feature "reservedRecordField" and replaced it with existing built-in "reserved words" feature. Fix minor issues with typings in generated files.

* Changed api recType names to make them less likely to cause name conflicts. Added generated ApiEntities (record, reducer & selector) files.

* Moved location of ApiEntities related files and fix issues with exports.

* - merge latest master
- renamed fake test apis to better fit the "pet theme"
- added mode for "SourceOnlyLibrary" (same as used in codegen typescript jquery)

* - missing ganarate sampless

* - Modified way to export apiEntitiesSelectpr to reduce typescript analysis time for consuming project. Removed tab characters in mustache files. Reformat code for TypeScriptFetchClientCodegen to try to remove false positive for tabs vs spaces.

* - added markErrorsAsHandled property to api sagas. Increased typescript version to address some typing errors on library build.

* - fix bug in saga interfaces. Upgraded to typescript "strict" mode to ensure proper typechecking info is generated.

* - added optional id for apiEntity selectors. Added toInlined() support to convert an entity to an inlined model recursively.

* - minor tweak for apiEntitySelector to accept null id

* - minor tweak for apiEntitySelector

* - runned ensure up to date.

* Revert "- runned ensure up to date."

This reverts commit ea9b4aed

* - runned ensure up to date.

* - runned ensure up to date.

* - added more enhancements: New "toInlined" functionality. Support for more complex double array types. apiBaseConfiguration is not sent completely for Api.init().

* - merge master

* - fix generated api bug in some cases for typescript fetch when no request params are present.

* - commented broken tests

* - fix generate samples analysis.

* update surefire to newer version

* - un-commenting test files with issues.

* factored similar utility functions in ExtendedCodegenProperty and ExtendedCodegenParameter.

Co-authored-by: Bruno Flamand <bflamand@stingray.com>
Co-authored-by: William Cheng <wing328hk@gmail.com>
2021-10-27 16:35:02 +02:00
William Cheng
5e857e749d
add an option for configKey (#10707) 2021-10-27 15:07:41 +08:00
Maximilian Zellhofer
6bbafdfa30
Allow specification of configkey for microprofile clients (#10693) 2021-10-27 14:28:17 +08:00
cyangle
ae39d782e0
Update crystal client gitignore.mustache with shards related files (#10698) 2021-10-27 14:23:55 +08:00
Justin Black
3a667784ac
Adds ComposedSchema to store schema composed schemas (#10653)
* Adds ComposedSchema and the ability to set it in CodegenModel and CodegenProperty

* Adds ComposedSchemas class and adds getters and setters for it in schema implementors

* Adds and uses getComposedSchemas

* Makes method private

* Uses setComposedSchemas for CodegenParameter and CodegenResponse

* Samples regeneratoed, tweaked string representation

* Removes null default

* Removes anyOfProps, oneOfProps, allOfProps

* Removes unneeded line
2021-10-26 12:49:32 -07:00
Justin Black
8d490835b7
Adds setPrettyPrint and the reslver MethodValueResolver.INSTANCE (#10683) 2021-10-26 09:45:21 -07:00
Peter Leibiger
f1ab3edbc0
[dart] Fix pub server URL (#10695)
* replace private pub server with official pub server URL
2021-10-27 00:33:58 +08:00
cyangle
01a4569995
Remove .rspec and .rubycop.yml from crystal client (#10701) 2021-10-27 00:21:19 +08:00
rudolficzek
d1089d785c
fix import mappings for service in angular typescript (#10644)
* fix import mappings for service in angular typescript

* add unit test

* regenerated samples
2021-10-26 13:49:18 +02:00
itaru2622
97e079fde0
add no_proxy support to python client (#10648)
* add no_proxy support to python client

* add unittest for no_proxy supporting, python client

* update samples for no_proxy supporting, python client

* fix input parameter in samples/openapi3/.../tests_manual/test_extra_pool_config_options.py

* re-implement no_proxy support to python client according to PR conversation #10648

* re-update samples for no_proxy supporting, python client
2021-10-26 10:12:42 +02:00
WILLIAM CHENG
3594b3452d Merge remote-tracking branch 'origin/5.4.x' into 6.0.x 2021-10-25 13:31:12 +08:00
WILLIAM CHENG
42f4e863b7 prepare 5.4.0-SNAPSHOT 2021-10-25 12:13:33 +08:00
William Cheng
378465702c
Prepare v5.3.1 in the master (#10681)
* prepare v5.3.1

* update doc

* update readme
2021-10-25 01:16:07 +08:00
William Cheng
bb124e1178
Prepare v5.3.0 release (#10680)
* prepare 5.3.0 release

* remove docker-tag-latest-release
2021-10-24 22:22:29 +08:00
William Cheng
fcef9fab63
update doc for java useAbstractionForFiles option (#10677) 2021-10-24 16:21:28 +08:00
William Cheng
8069d183f3
[Java] Add streaming endpoint support (#9813)
* add streaming endpoint support to java client

* update doc
2021-10-24 16:02:49 +08:00
Troy P
91d0e2dad0
(fix #9673) This change introduces a flag to have tests generated under the pythonSrcRoot directory if it's specified. (#9674)
This change also introduces AssertJ as a new dependency.
2021-10-24 12:22:18 +08:00
William Cheng
2413783288
update build.gradle to work with gradle 7.x, add test (#10669) 2021-10-24 12:19:52 +08:00
William Cheng
ec2ed98269
better comment/docstrings in jersey2 apiclient (#10668) 2021-10-24 12:19:20 +08:00
William Cheng
bb37a71d06
update dependencies in build.sbt to newer versions (#10667) 2021-10-23 16:17:46 +08:00
Maciej Sitarz
2875c7e14d
Improve Apache Httpclient support (#10624)
* Move apache-httpclient templates to proper dir

* Add template for Gradle

* Fix few JavaDoc compile warnings

* Add properly generated samples

* Empty just trigger PR checks rebuild
2021-10-23 14:57:32 +08:00
cyangle
27459b5003
[crystal] Fix some issues in crystal client templates (#10629)
* Fix some issues in crystal client templates using google drive v3 oas3 api spec

* update crystal petstore sample code

* Address PR comments

Raises on unsupported feature
clean up extra new lines in partial_model_enum_class.mustache

* Use size instead of length

length is undefined for String or Array

* Fix typo

* Use default value instead of nil

* remove unused template file

* Use ::File instead of File as file type to avoid conflicts

The spec could also have a File model

* support file upload in multipart/form-data post body

* Revert breaking changes in api template

* Use double quotes to quote string values

single quotes are used for single char in crystal

* Update api_client to use global ::File and update petstore samples

* JSON Annotation Field key's value should be double quoted

* Handle nil values for form_params

* Remove default values from method definitions due to grammar error

* Fix integration tests
2021-10-23 11:34:08 +08:00
WILLIAM CHENG
afacdb229a Merge remote-tracking branch 'origin/master' into 6.0.x 2021-10-23 10:16:27 +08:00
William Cheng
7b7d7db0c7
[Java][okhttp] rename enum (#10642)
* rename java enum with uppercase

* add tests for snake case lambda

* update file header

* update feign templates with new enum names

* update okhttp template wth lambda

* fix tests
2021-10-23 10:15:30 +08:00
William Cheng
885a813f86
update java jersey2 dependencies (#10659) 2021-10-23 10:13:39 +08:00
Jordan M. Adler
e7dace6099
[typescript] Add headers to ApiException (#10153) 2021-10-22 08:50:03 +02:00
WILLIAM CHENG
df197e4a91 Merge remote-tracking branch 'origin/master' into 6.0.x 2021-10-22 11:57:00 +08:00
William Cheng
37006f8a03
add snak case lambda (#10658) 2021-10-22 10:49:38 +08:00