18059 Commits

Author SHA1 Message Date
Jan Ruhländer
ee011c563e
fix typo (--supporting-files > --feature-set) (#10801) 2021-11-09 14:48:18 +08:00
Kevin Chen
7d092e76a1
[Bash] Support post form data (#10795)
* curl with form data

* fix type

* update bash readme

* typo

* update sample

* add test for form data

* update
2021-11-09 14:43:48 +08:00
Vincent Galloy
955aadc284
10788: ApiClient for resttemplate should not produce warning (#10789)
Motivation:

Remove useless warnings for webclient and resttemplate
2021-11-09 14:38:57 +08:00
agilob
4d947a1c45
Non functional Java styling changes (#10808)
* Replace explicit <Type> with <>

* Remove redundant toString() calls on String

* Use StandardCharsets.UTF_8 instead "UTF-8" string

* Simpler annotation format and redundant this

* Dont concat on empty String, use String.valueOf()

* Dont run equals on empty String

* Use string.anyMatch instead counting

* Collection add all instead iterating and adding

* Replace string contact with append chain in stringBuilders
2021-11-09 14:36:01 +08:00
agilob
53d3c9fc70
Fix tpyo prefered -> preferred (#10807) 2021-11-09 14:31:01 +08:00
Code1x1
0bb4f186ec
#10056 Fix relative url as basePath (#10057)
* #10056 Fix relative url as basePath

* Add tests handle relative urls in servers

* PR Task:
* replace tabs with spaces
* can `servers` be null or empty?

* PR Task: fix empty line tab

* Update DefaultGenerator.java

Fix lines change tabs to spaces

* Fix tabs spaces

Co-authored-by: Denis Behrends <d.behrends@hosting.de>
2021-11-06 18:27:26 +01:00
William Cheng
3284fc2f7e
skip spotless as part of the check task (#10797) 2021-11-06 18:50:38 +08:00
William Cheng
bd1a6471b6
[java][Jersey2] add spotless maven, gradle plugins (#10796)
* add bunker-holding logo

* add spotless plugin to jersey2 java client

* add spotless plugin to java jersey2 client

* use jdk11 in gradle tests

* fix gradle test local spec

* setup java 11

* skip spotless in check task
2021-11-06 18:11:58 +08:00
BunkerTsto
84c2b04f24
Added Bunker Holding Group to companies list (#10794) 2021-11-06 09:49:42 +08:00
William Cheng
a73363fd53
[java][okhttp] Add spotless maven, gradle plugin (#10785)
* add spotless maven plugin

* add spotless gradle plug-in

* add spotless version
2021-11-05 17:48:14 +08:00
Hui Yu
369133a03e
[C][Client] Define and initialize non-primitive variables at the beginning of function (#10756) 2021-11-05 10:51:57 +08:00
Johannes Becker
40018c333d
Fixed broken form params in typescript-angular client (#10776) (#10777)
* Fixed broken form params in typescript-angular client (#10776)

* Added regenerated samples.
2021-11-04 11:31:46 +01:00
Anders Aaen Springborg
c741b10fb7
cpp-tiny 3.0 (#10739)
* int get generated as long

* test revised

* moved network logic to abstract service

* New service hooks in services

* bourne version

* remove comment from cert

* sendRequest remove direct link to http request

* Network logic into AbstractService

* Rename AbstractService to Service

* add query params

* Remove unused comment

* Change files in openapi

* amazon root CA 1 default ssl certificate

* rename service

* duplicate line

* Set todo

* lint whitespace fix

* uncomment array querey paramns

* Form params in service body

* this is nice

* added form params

* remove random mustache variable

* change form map to list, as it would overwrite if there was duplicates

* maven build and doc gen
2021-11-04 10:24:13 +08:00
William Cheng
a7242cc8d0
Update restsharp to the latest stable version (#10762)
* update restsharp to newer version

* undo change
2021-11-04 10:20:53 +08:00
William Cheng
4ecceb13ea
[Java][okhttp] remove default content-type in the request (#10769)
* remove default content-type in java okhttp client

* update smaples

* update tests
2021-11-04 10:19:13 +08:00
William Cheng
b3ec7faa8f
Update Maven to 3.8.3 in Appveyor CI (#10771)
* update mavne to 3.8.3 to fix appveyor build failure

* update folder name
2021-11-03 23:48:18 +08:00
William Cheng
9d1420dc94
fix bug in query collection parameters (#10768) 2021-11-03 22:13:33 +08:00
topce
edb88d9193
Delete body angular (#10751)
* change isBodyAllowed to return true
for delete method
Add method
isMethodPutOrPatchOrPost

* change templates to use isMethodPutOrPatchOrPost
to be compatible with previous versions,
lubrary mainterners should decide
if want to use isBodyAllowed

* since angular 12.1 delete with body is supported
Change angular typescript to support delete with body if
angular version is >= 12.1
update default  ngVersion to be latest
12.2.12

* generate samples and docs

* ApiClient was OK
revert my changes
2021-11-03 10:46:30 +08:00
Ken Kaizu
359e39360a
[scala-akka-http-server] Fix array optional parameter invalid default value (#10676) 2021-11-03 10:41:30 +08:00
Thibault Duperron
c4d10d55cb
Add validation to headers (#10703) 2021-11-03 10:06:56 +08:00
Thibault Duperron
68abbb34b1
[Kotlin][Spring] Fix required parameter in tests (#10705)
Should fix #10704
2021-11-03 10:05:52 +08:00
Mike Welsh
b117d29729
Allow Spring generated code to use new OAS 3 annotations (#9775)
* Resolve #9774

- Add in `oas3` option for Spring codegen to use newer annotations
- Add `useSpringController` option for Spring codegen
- Use `useSpringfox` to fix some unwanted imports for Spring codegen
- Use `jdk8` to add OffsetDateTime import for models in Spring codegen
- Add `JsonValue` to `enumOuterClass.mustache` to allow enums to be
  generated properly

* Update spring examples

* Update with a clean maven install and regenerate samples

* Remove newling at end of param files and regenerate samples

* Update codegen with merge from master

* Update tests and samples

* Remove #vendorParams from API

* Update generated and tests

* Get closer to master

* Remove SpringFox setter boolean

- Annotation was altered to be fully qualified, doesn't need import
  removed anymore

* Update examples and tests

* FIx pojo.mustache (missed update to master) and regenerate tests

* Fix pojo.mustache extra `(`

* Update tests and documentation

* Update models and documentation

* Handle boolean property correctly

- Use `convertPropertyToBoolean` and `writePropertyBack`

* Fix more @ApiParam usage with @Parameter

- Also replace allowableValues with @Scheme(allowableValues =
`

* Update samples

* Update maven `pom.xml` mustache to use OAS3 annotations

* FIx typo in variable name

* Write back `useSpringfox` property
2021-11-03 00:44:54 +08:00
Strixpyrr
60bc508163
Generate ApiKeyAuth with an apiKey security scheme (#10708) 2021-11-03 00:00:48 +08:00
Bruno Coelho
57afa97166
[kotlin][client] add base url key (#10633)
* [kotlin][client] add base url key

* [kotlin][client] update sample projects

* [kotlin][client] add base url key
2021-11-02 23:32:42 +08:00
William Cheng
df260acc8f
[C#] Update C# dependencies to newer version (#10761)
* update csharp-netcore dependencies

* restore Compare-Net-Objects
2021-11-02 23:21:11 +08:00
William Cheng
0de0890546
fix nuspec in csharp-netcore template (#10759) 2021-11-02 23:11:49 +08:00
WILLIAM CHENG
a6ba553281 update groovy templates 2021-11-02 23:10:33 +08:00
William Cheng
4695279a07
fix build-info-extractor-gradle in groovy build.gradle (#10760) 2021-11-02 18:03:01 +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
666382b377
Disable groovy client tests (#10748)
* disable groovy test

* use spaces instead of tabs
2021-11-01 10:53:58 +08: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
Sylhare
912d993955
Add openapi-generator kotlin article (#10731) 2021-10-29 23:08:14 +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
4cece10bae
rebalance circleci tests (#10727) 2021-10-29 13:38:16 +08: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