William Cheng
225d590b53
add a test for allOf with nested inline object with oneOf
2023-02-28 17:53:48 +08:00
William Cheng
a4b5b85067
Update jackson nullable version to newer version v0.2.6 ( #14823 )
...
* update jackson nullable to newer version
* update samples
* update samples
* update samples
2023-02-27 18:38:31 +08:00
Michel Wohlert
07f1d2d51c
Encode request parameters to enable whitespace characters ( #14797 )
2023-02-27 09:25:28 +08:00
Rémi Kalbe
099f138dd5
[RUST] Upgrade reqwest-middleware ( #14819 )
...
* [RUST] Upgrade reqwest-middleware
Bump reqwest-middleware from 0.1.6 to 0.2.0
* Bump sample
2023-02-27 09:05:37 +08:00
William Cheng
b5d4fa9d27
fix unique items in python nextgen client ( #14816 )
2023-02-26 10:21:26 +08:00
Emma
1f2d6b8848
[python-nextgen] support dict query params ( #14727 )
...
* [python-nextgen] convert dictionary query params to string
* [python-nextgen] regenerated samples
* [python-nextgen] added some test cases for parameters_to_url_query
* [python-nextgen] use json.dumps instead of str(v)
* [python-nextgen] update api_client tests
2023-02-25 22:25:52 +08:00
Dennis Melzer
92b96635bd
Fix bean validation for Collection and add unit test ( #14736 )
...
* Fix bean validation for Collection + uni test
* Fix
* Adapt examples
* Fix comments
* Merge master
* Remove Bean validation for Maps
* Remove @Valid from jakarta
* Fix example
* Fix comments
* Fix springboot-3 example
2023-02-25 22:06:31 +08:00
David Weinstein
3aa7ec6a39
Get API configuration from application environment for erlang-client ( #14752 )
...
* Get config from classname api
* Use the packageName
* Add samples
2023-02-25 22:05:14 +08:00
sbilz
f4e53db8cf
Java Jersey glassfish fix renewing OAuth-Accesstoken #14734 ( #14735 )
2023-02-25 22:01:33 +08:00
catostrophe
5c9999b7cf
Stop using org.springframework.util.Base64Utils in Java generators ( #14813 )
...
This utility class has been marked as deprecated for future removal since Spring 6.0.5. All Java generators, except WebClient and RestTemplate, are already using Base64 directly.
2023-02-25 21:56:18 +08:00
William Cheng
d400d7fb15
Better handling of x-nullable in codegen property ( #14800 )
...
* add failed tests
* add logic to handle x-nullable in property
* update samples
* update test
2023-02-24 15:24:34 +08:00
William Cheng
b527f3b816
Setup Github works for Erlang projects ( #14788 )
...
* add github work for erlang projects
* trigger build
* use setup-bean instead
* add rebar3 version
* update otp version
* fix otp version
* fix otp version
* use 22.2
* fix
* fix
* fix ubuntu version
* use 22.2
* comment out erlang server test
2023-02-22 15:03:21 +08:00
William Cheng
cab9872d6d
Add from_dict in model anyOf in python-nextgen ( #14781 )
...
* add from_dict to model_anyof template in python-nextgen, fixes #14767
* add space before from_dict in model.anyof in python-nextgen
* update samples, add tests
---------
Co-authored-by: Tomas Karasek <tom.to.the.k@gmail.com>
2023-02-22 10:56:05 +08:00
Cameron Koegel
18ef6ff96a
[Ruby] fix return_binary_data
with attr_accessor
( #14772 )
...
* [Ruby] fix `return_binary_data` with `attr_accessor`
* regenerate samples
2023-02-22 00:51:21 +08:00
Naoki Ikeguchi
9290c1a75e
[rust-server] Fix clippy warnings ( #13907 )
...
* fix(rust-server): clippy::blacklisted_name -> clippy::disallowed_names
* fix(rust-server): Remove unnecessary deref
* fix(rust-server): Allow clippy::single_match
* fix(rust-server): Use clone instead of to_owned on Cow
* fix(rust-server): Remove needless borrows
* chore(rust-server): Update sample outputs
2023-02-20 13:46:01 +08:00
William Cheng
c50a775e0c
prepare 6.5.0 release ( #14749 )
2023-02-19 20:36:23 +08:00
William Cheng
93df0ff444
Prepare 6.4.0 release ( #14748 )
...
* prepare 6.4.0 release
* update samples
2023-02-19 18:53:20 +08:00
William Cheng
1bd3ce7ce2
[python-nextgen] Better oneOf, anyOf support ( #14743 )
...
* better oneof, anyof support
* improve anyof support
* fix deprecation warning
* fix anyof, add tests
* add nullable support, add test
2023-02-19 17:16:15 +08:00
William Cheng
0891b6056f
python better datetime test ( #14742 )
2023-02-19 16:48:36 +08:00
Jorge Rodríguez Martín
cb20e742ea
[BUG][JAVA][SPRING] Fix serialization when there is a discriminator with mapping ( #14733 ) ( fix #14731 )
...
* Fix serialization when there is a discriminator with mapping
* Update samples
* Update samples
* upgrade samples
* Revert "Update samples"
This reverts commit d6affde263d6c539e32a7f38dc984cf5948ab322.
2023-02-18 07:00:44 -08:00
GregDThomas
c5d67ee042
Fix https://github.com/OpenAPITools/openapi-generator/issues/11570 by ensuring tags at the class level match tags at the method level ( #13434 )
2023-02-18 06:23:10 -08:00
William Cheng
7968349991
go server - use tabs instead of spaces ( #14740 )
2023-02-18 00:37:53 +08:00
Rodrigo Cebrián González
612dc4dbcb
[BUG][Go] Remove "null" body value when body is empty #13927 ( #13934 )
...
* only write reponse body if not nil
* update go samples
* golang style convention
2023-02-18 00:29:12 +08:00
Sergey Prytkov
958609931b
ktor-client add toString() for generic params ( #14717 )
...
* ktor-client add toString() for generic params
* fix builder receivers
2023-02-17 09:56:36 +00:00
RInverid
9be92fabd1
fix incorrect method name ( #14720 )
2023-02-16 22:22:55 +08:00
Dave Syer
0e0cddacac
Make sure jaxrs-spec works with Jakarta ( #14654 )
2023-02-16 18:29:37 +08:00
John Vandenberg
11d9d4346e
[rust] Fix content-type in templates ( #14702 )
2023-02-16 17:54:02 +08:00
Antoine Vandecreme
12e76ec14f
Fix escaping in R ( #14572 )
2023-02-16 16:02:03 +08:00
William Cheng
62f52ad520
install lifecycle as part of r tests ( #14716 )
2023-02-16 15:49:50 +08:00
William Cheng
d7e75ebe5d
fix anyof toUrlQuery string in java native ( #14715 )
2023-02-16 14:46:57 +08:00
William Cheng
71c2abf81c
[Java] fix default value for JsonNullable ( #14703 )
...
* fix java webclient default value
* update default value in java okhttp client
* fix java native client default value in JsonNullable
* improve java okhttp-gson default value template
* update java rest-related templates
* update feign samples
* update jersey3 templates
* update jersey2 templates
* update default value in jaxrs templates
* fix spring default value
* update jaxrs pojo, fix tests
* update samples
* suport set
2023-02-16 10:37:36 +08:00
Peter Leibiger
8b0b4b5d04
[dart][dart-dio] Add deprecations on models and fields ( #14676 )
2023-02-16 01:09:34 +08:00
Peter Leibiger
1814a04c20
[dart][dart-dio] Bump Dio to 5.0.0 ( #14675 )
...
* [dart] Cleanup unused/redundant stuff
* [dart] Bump Dio to 5.0.0
* Fix description
* Get tests to run based with git dependency
* Fix test generation
* Update docs
* Update test dependencies
* Use released version of http_mock_adapter
2023-02-16 01:09:08 +08:00
devhl-labs
b6e51b7a77
[csharp-netcore] Use scheme from base address ( #14685 )
...
* use scheme from base address
* removed unecessary null-forgiving operators
2023-02-15 23:47:33 +08:00
devhl-labs
7c57024e69
improved date de/serialization ( #14679 )
2023-02-15 23:46:48 +08:00
Andre Vegas
d7edbad8d6
[java][apache-httpclient] update httpclient dependency to the latest 5.x ( #14673 )
...
* #14672 - adding generator with apache http client 5
* #14672 - adding generator with apache http client 5
* #14672 - adding generator with apache http client 5
* #14672 - adding generator with apache http client 5
2023-02-15 15:12:39 +08:00
William Cheng
85a7d69b5f
update starlette to newer version ( #14700 )
2023-02-15 14:59:43 +08:00
William Cheng
110460b71a
[python-nextgen] better datetime support in parameters ( #14621 )
...
* add allowStringInDateTimeParameters option
* add tests
* add files
* add tests for datetime query parameters
* fix file anme
* trigger build
* fix pytest
* install test requirement
* trigger build
* break build
* add new files
* fix Locale.ROOT
* update doc
2023-02-12 21:11:29 +08:00
William Cheng
72c02e4bc1
optionally support float strict type ( #14618 )
2023-02-12 19:44:18 +08:00
William Cheng
d7a2e4a293
Apache Camel: implicit headers ( #14674 )
...
* Apache Camel: fix implicit headers
* ./mvnw clean package
./bin/generate-samples.sh
./bin/utils/export_docs_generators.sh
* Q
* Created samples/openapi3/client/3_0_3_unit_test/python/test/.gitempty
* update samples
---------
Co-authored-by: Giacomo Carnevale <gcarnevale@imolainformatica.it>
2023-02-11 23:48:55 +08:00
William Cheng
b6abace9dc
[JAVA] java.net.http.HttpClient (java native) conditionally depend on apache ( #14670 )
...
* JAVA-NATIVE conditionally depend on apache
* add hasFormParamsInSpec in abstract java codegen
* use hasFormParamsInSpec instead
* minor fix
---------
Co-authored-by: Sergey Prytkov <sergey@razz.team>
2023-02-11 22:06:44 +08:00
William Cheng
e702506e4d
update samples
2023-02-11 10:35:27 +08:00
Beppe Catanese
68b944e6e6
Preserve order of securitySchemes ( #14536 )
...
* Remove alphabetical sort
* Update integration testing expectations
* Regenerate files
2023-02-10 22:20:19 +08:00
Tom Deering
4664f6c46c
[Java] Fix APIClient basePath Configuration ( #14600 )
...
* Nullify serverIndex in java ApiClient.setBasePath
Restores previous behavior broken between v6.2.1 and v6.3.0
* Regenerate samples
2023-02-09 18:27:57 +08:00
William Cheng
687bace3f3
[Java][native] add spotless gradle/mvn plugin ( #14641 )
...
* add spotless plugin to java native client
* apply spotless
* Revert "apply spotless"
This reverts commit 485d50bbde417044f8aabaef76dee906afc6798c.
2023-02-09 10:29:40 +08:00
William Cheng
011982ab9c
[csharp-netcore] add tests for uuid string with pattern ( #14411 )
...
* add tests for uuid with pattern in csharp clients
* update samples
* update samples
* update
2023-02-08 20:54:56 +08:00
William Cheng
4c8e230e50
update ts samples
2023-02-08 10:53:30 +08:00
TORISOUP
7ca0b92944
[csharp-netcore] HttpClient/Set TimeoutException to inner exception in case of timeout ( #13862 )
...
* Changed to TimeoutException
* Handle timeout exceptions as inner exceptions.
* Corrected arguments for compatibility
2023-02-08 10:28:55 +08:00
Nico Korthout
26eb1dc805
[Kotlin-Spring] Support multiline descriptions ( #14406 )
...
* [Kotlin-Spring] Support multiline descriptions
This commit adds support for multiline descriptions for operations in
the Kotlin-Spring generator, for both regular API generation (i.e.
Controller), as well as interface-only API generation.
Multiline descriptions allow us to use rich text representations, e.g.
with Markdown. Note that Markdown-formatted descriptions are rendered
nicely in Swagger-UI. I imagine that most openapi consumers will be able
(or will want to) support Markdown (at some point).
The solution for Kotlin-Spring is rather simple, using Raw Strings to
contain the `unescapedNotes`.
See: https://kotlinlang.org/docs/strings.html#raw-strings
Note that specific unescaped strings could cause problems. For example,
the string containing three double quotes `"""` would result in compile
errors for the generated code. I think this is acceptable.
Note that an improvement is possible to use `.trimMargin()` in
combination with the pipe symbol `|`, to allow specific margin
prefixing.
Note that the description is used in escaped form in the JavaDoc. This
could be resolved by prefixing every line of the unescapedNotes with a
star `*`.
For now, I've chosen to implement this the simplest way I could think
off.
Signed-off-by: Nico Korthout <nico.korthout@camunda.com>
* [Kotlin-Spring] Update samples
Signed-off-by: Nico Korthout <nico.korthout@camunda.com>
---------
Signed-off-by: Nico Korthout <nico.korthout@camunda.com>
2023-02-07 17:25:12 +00:00
Beppe Catanese
515abf8c68
[Go] Export isNil function in utils.go ( #14625 )
...
* Rename isNil to IsNil
* Regenerate files
2023-02-07 22:15:30 +08:00