Eugene
60b29e1f8e
#10472 csharp-netcore client - allow to specify content-type for files ( #10473 )
2021-09-26 23:31:37 +08:00
William Cheng
119370079a
update spec template, samples
2021-09-25 18:14:26 +08:00
romanblack1
7384a1e513
Define content type only if the body is not empty ( #9766 )
...
* define content type iff the body is not empty
* update samples
2021-09-25 15:05:38 +08:00
William Cheng
00ea470e49
update ruby tests
2021-09-25 15:03:01 +08:00
romanblack1
622a936358
Define content type if and only if the body is not empty ( #9910 )
...
* rubypatch
* moving change to api.must
* fix content_type to content-type
* added end to if
2021-09-25 14:53:58 +08:00
William Cheng
323065e53f
Merge branch 'master' of https://github.com/openapitools/openapi-generator
2021-09-25 13:59:06 +08:00
William Cheng
871b9ab5b6
update phpunit xml to newer format ( #10470 )
2021-09-25 13:58:27 +08:00
William Cheng
150e304b4c
update samples
2021-09-25 13:56:00 +08:00
Wim Van Renterghem
4e029e99ea
Remove type erasure of the Error response, as it is always the same type ( #10460 )
2021-09-25 13:52:50 +08:00
jakubskopal
56b060c6fa
Fix missing import for JsonTypeName ( #8815 )
...
Attempt to fix #8157
2021-09-25 13:47:10 +08:00
William Cheng
c9047a6faa
[php] enhance type mapping ( #10457 )
...
* map BigDecimal to float
* enhance type mapping in php generators
* update tests
* update doc, samples
* remove primitive types from phpdt, mezzio
2021-09-25 12:09:34 +08:00
Bodo Graumann
be3bd2e6c7
[Typescript] Improve exception for unknown responses ( #10361 )
...
* Clean up tests
* Change pets to async-await
* Use different pets for each test
* Workaround multiple petstore server instances
* Add test for unknown error response code
* Remove call duplication
Running the petstore server locally fixes all issues.
* Make body of unexpected error responses available
* Regenerate all consolidated typescript samples
* Remove json heuristic for unknown error responses
2021-09-24 23:53:37 +02:00
Yoann Ricordel
476a82cb75
[bash] Force Content-Length: 0 on empty posts ( #10462 )
...
In the case where we are making empty posts, use -d '' to force curl to
set the Content-Length header to 0. Some backends (among which Microsoft
Kestrel) are sensitive about POST without a Content-Length set.
2021-09-24 01:13:22 +08:00
Pi Delport
5096a00087
Rust client docs improvements ( #10461 )
...
* docs(rust,client): link from parameter structs to operation methods
* docs(rust,client): move "more information" text up
This prevents the "more information" text from flowing into the previous
bullet point.
* docs(rust,client): use code formatting for generatorClass
* docs(rust,client): use packageName variable for Cargo.toml dependencies example
* chore(rust,client): capture sample updates
2021-09-24 01:03:01 +08:00
William Cheng
1d934643fd
update samples
2021-09-23 14:29:33 +08:00
Himanshu Pant
538f12c36d
fix: 🐛 Added ability to override basePath while creating ApiClient instance ( #10327 )
...
Solves #9179
2021-09-23 14:23:56 +08:00
Pi Delport
31342580cb
feat(rust,client): derive Default for operation parameter structs ( #10432 )
...
* feat(rust,client): derive Default for model & api structs
This makes operations with many parameters easier to work with.
* chore(rust,client): capture sample changes: derive Default
2021-09-23 11:31:09 +08:00
Bruno Coelho
7c133be617
[swift5][client] add support for async await ( #10442 )
...
* [swift5][client] add support for async await
* [swift5][client] disable CI for the async await sample project temporarily
2021-09-23 10:53:57 +08:00
msmerc
916791de7c
Add semicolon as a special case ( #10451 )
...
Please could you also add `;` as a special case in enums?
2021-09-23 10:51:02 +08:00
William Cheng
a55f8afc81
update samples
2021-09-22 14:09:54 +08:00
William Cheng
acd747ca6d
Merge remote-tracking branch 'origin/master' into 6.0.x
2021-09-22 12:13:44 +08:00
Pi Delport
de95e2a144
fix(rust,client): re-enable TLS support for reqwest with supportAsync ( #10439 )
...
* fix(rust,client): keep default reqwest features with supportAsync
This avoids disabling TLS support entirely.
* chore(rust,client): capture sample changes
This avoids disabling TLS support entirely.
2021-09-22 12:08:56 +08:00
Pi Delport
30a37b3d8c
ci(drone): fix duplicate pipeline names ( #10437 )
...
Drone requires unique pipeline names, which PR #10423 (5c45465 ) missed.
2021-09-22 11:12:53 +08:00
William Cheng
14bebcd2f2
string comparison bug fix, minor format change ( #10446 )
2021-09-22 11:06:18 +08:00
Philipp Heuer
3b6b194a24
[gradle]: allow setting custom engines other than handlebars ( #10416 )
2021-09-22 11:01:36 +08:00
William Cheng
acdf357b76
Revert "Accept header forces application/json type even if server ( #10337 )" ( #10440 )
...
This reverts commit 18301d0011 .
2021-09-21 18:17:05 +08:00
Aleksandr Nekrasov
ef0186c9cf
[scala] Fix Array[Byte] type for Openapi type string format byte ( #10426 )
...
* [scala] fix byteArray mapping in AbstractScala
* fix testng framework instead of junit for sttp codegen
* regenerate scala examples
* regenerate docs and examples
* fix test
2021-09-21 12:15:49 +08:00
Wojciech Trocki
18301d0011
Accept header forces application/json type even if server ( #10337 )
...
* fix!: accept should not force application JSON
Generated code offen provides range of accept methods.
This method improperly takes JSON as preferred
Example:
localVarHTTPHeaderAccepts := []string{"application/zip", "application/json"}
* chore: generated changes
2021-09-21 12:04:00 +08:00
Andrew
61852a072a
[go]: fix anyOf compilation error ( #10431 )
2021-09-21 12:01:35 +08:00
Wojciech Trocki
a939676c0d
fix: expose allowed values of the enum ( #10386 )
...
* fix: expose allowed values of the enum
Fixes #10385
* chore: update examples
2021-09-21 11:58:38 +08:00
William Cheng
1947f130c0
update doc, samples
2021-09-21 11:52:33 +08:00
adessoDpd
1a48c5f19f
[Wsdl] Handle schema property of type array with oneOf items and other minor updates/fixes ( #10434 )
...
* add handling of array of oneOfs
* handle res model-type lowercase name +shorten code
* remove unnecessary vendor-extension model enum
* handle openapi lowercase schema name for array res
* change xs:anytype to string for file responses
* update checkstyles
* remove not needed imports again
* update samples
* upper/lowercase use local getdefault
* update samples again
2021-09-21 11:46:05 +08:00
RomainPruvostMHH
04e67acd0a
Fix issue 8352: [Java][RestTemplate][WebClient] Incorrect handling of free form query parameters ( #10428 )
...
* [Java][RestTemplate][WebClient] fix issue #8352 handling of free-form
query parameters with Java
* replace tab by spaces
* commit samples files generated by the generate-samples.sh script
2021-09-21 11:40:56 +08:00
Pi Delport
ce30a3f3bc
fix(rust,client): convert form isArray values to string ( #10420 )
2021-09-21 11:36:02 +08:00
Pi Delport
5c45465a97
ci(drone): use parallel pipelines ( #10423 )
...
Docs: https://docs.drone.io/pipeline/configuration/#multiple-pipelines
2021-09-21 11:23:04 +08:00
Jon Schoning
1247e77453
[haskell-http-client] add ability to choose additional characters in querystring which should not be encoded (e.g. "+" or ":") ( fixes #3459 ) ( #10424 )
2021-09-19 02:02:22 -05:00
Jon Schoning
f2cc23442c
regen samples ( #10425 )
2021-09-19 00:11:55 -05:00
William Cheng
14758dbb0b
Merge branch 'master' of https://github.com/openapitools/openapi-generator
2021-09-19 13:10:12 +08:00
William Cheng
e3b558c0f1
update samples
2021-09-19 12:40:33 +08:00
Vitaliy Kim
b13e37839a
fixes OpenAPITools#10403 ( #10404 )
2021-09-19 12:29:20 +08:00
Pi Delport
10288397f9
fix(RustServerCodegen): fix reserved word model rename log message ( #10418 )
2021-09-19 11:49:35 +08:00
Pi Delport
2bd20a08de
fix(rust,client): use local_var prefix for configuration ( #10419 )
...
* fix(rust,client): use local_var prefix for configuration
This avoids conflicting with params named "configuration".
* chore(rust,client): capture updated samples
2021-09-19 11:44:42 +08:00
Thomas Leplus
80fb9e9889
Use 'this' to assign to class field. ( #10417 )
2021-09-19 11:42:34 +08:00
Gregor
a463c11354
10408: made Validate public. ( #10413 )
2021-09-19 11:41:18 +08:00
bgong-mdsol
fdb13c3e2e
add the correct import of enum ( #10412 )
2021-09-17 09:38:48 +08:00
Surya Asriadie
0936b43dfd
[Kotlin] Fix default value for kotlin class ( #10407 )
...
* Fix default value for kotlin class
* fix style: remove trailing line
* fix ktorm schema
2021-09-17 01:12:41 +08:00
Foorack / Max Faxälv
f9320cae68
[typescript-axios] Upgrade axios from 0.21.1 to 0.21.4 ( #10381 )
...
* Upgrade typescript-axios from 0.21.1 to 0.21.4
* Update samples
2021-09-16 10:39:38 +08:00
bgong-mdsol
aac9aa681e
fix not type found ByteArray ( #10166 )
2021-09-16 10:24:44 +08:00
Ben Zvan
340eb7db1a
udates to kotlin 1.3.30 ( #10389 )
2021-09-15 11:54:48 +08:00
Jon Schoning
df877a8cf9
[haskell-http-client] fixes for GHC 9 ( #10400 )
...
- update stack/deps to LTS 18.10 for ghc-8.10.7
- fixes for GHC 9
- update samples
2021-09-14 16:15:58 -05:00