condorcorde
16b28118cc
Conditionally force array context when converting to JSON ( #19262 )
2024-07-30 18:13:29 +08:00
VelorumS
f082a35d2e
[Python] fix object arrays giving mypy error "Incompatible types in assignment" in to_dict() ( #19223 )
...
* [python] mypy fix for multiple arrays of objects
* [python] mypy test for multiple arrays of objects
2024-07-29 16:34:27 +08:00
devhl-labs
755b2efee4
[csharp][generichost] Support response ranges ( #19256 )
...
* support response ranges
* revert unintended change
* update try deserialize methods
2024-07-29 16:33:27 +08:00
martin-mfg
2958107a6a
[JAVA-CAMEL] revert broken xml change ( #19259 )
...
* revert problematic java-camel XML change
* generate samples
2024-07-29 16:32:33 +08:00
Bruno Coelho
42e8f762ac
[Kotlin][Client] Encode default values with kotlinx serialization ( #19253 )
...
* [Kotlin][Client] Encode default values with kotlinx serialization
* [Kotlin][Client] Encode default values with kotlinx serialization
2024-07-29 08:42:57 +01:00
Peter Storch
37afe57f0f
[Kotlin][Spring] fix #19244 integer enum ( #19248 )
...
* [Kotlin][Spring] fix #19244 integer enum
* fix embedded array enum
2024-07-26 16:02:34 +01:00
Peter Storch
c93ec54a16
[Kotlin][Spring] fix build.gradle.kts and pom.xml for SpringBoot 2.x ( #19246 )
2024-07-26 14:06:26 +01:00
Venkatesh Dayananda
3c880719e1
[julia] Add support for style, explode in query params ( #19238 )
...
* set style and explode
* update client
* fix
* set the newer version
2024-07-26 17:01:14 +08:00
Makoto Aoyama
fb023b192b
[swift5]Add array validation rule ( #19242 )
...
* Add ArrayRule
* Run ./bin/utils/export_docs_generators.sh
* Add ArrayValidationErrorKind
* Add validation method
* Run ./bin/generate-samples.sh
* Add array rule property
* Rename minItem and maxItem => minItems and maxItems
* Fix uniqueItems template
* Tweaks
* Add sample property
* Run ./bin/generate-samples.sh
2024-07-26 07:53:59 +01:00
William Cheng
362d3b5aa1
[csharp] Add scope for oauth2 ( #19234 )
...
* feat: add scope for oauth2
* fix: add parameter AlwaysMultipartFormData
* fix: string to boolean
* fix: optional bool
* fix: null checks
* Optional string
* Remove all references to OAuthMultipartFormData
* Remove _multipartFormData = multipartFormData;
* Remove typo
* Run generate-samples and export_docs_generators
* Revert "Run generate-samples and export_docs_generators"
This reverts commit f051f268a5 .
* Switch to string.IsNullOrEmpty, add langVersion 8
* Add langVersion 8 in ConditionalSerialization
* Use regular strings for netstandard2.0
* Remove references to langVersion 8
* Fix variable
* Use template engine to toggle nullable string
* Trigger tests
* Generate samples
* Trigger build
* Use {{nrt?}}
* update samples
---------
Co-authored-by: Morten Jansrud <morten.jansrud@snokam.no >
2024-07-24 21:15:12 +08:00
Bert Downs
9a673ea09a
Rust: Support Integer enums using Serde_repr ( #19199 )
...
* rust: support repr(int) enum
* Regen APIS
* remove the extra lines
* merge most recent commits from master
* update tests to ensure that enum compiles correctly
* drop changes to kotlin files
---------
Co-authored-by: Jihyun Yu <yjh0502@gmail.com >
2024-07-24 17:14:17 +08:00
Peter Storch
0e70d1f068
[Kotlin][Spring] use flag delegatePattern together with skipDefaultInterface ( #19212 )
...
* fix #19211 kotlin-spring flag delegatePattern together with skipDefaultInterface generates broken code
* add kotlin-springboot-delegate-nodefaults to the workflow
* fix Platform declaration clash
* move kotlin-springboot-delegate-nodefaults to the kotlin-server-jdk17 file
* fixed empty line
2024-07-23 18:41:14 +08:00
m-standfuss
6ad5864d28
Adding decimal support for python client generation ( #19203 )
...
* Adding decimal to template for Python generator
* Rerunning the build steps
* Add tests for decimal serialization and deserialization.
* Move test to python not legacy pydantic sample
* readd old imports
---------
Co-authored-by: Adam <abolfik@pollyex.com >
2024-07-23 16:16:23 +08:00
Kaido Iwamoto
fef84d956e
[typescript-fetch] Fix code generation for oneOf cases without discriminator ( #19219 )
...
* Add samples using `oneOf` without discriminator
* Fix typescript-fetch code gen for `oneOf` without discriminator
* Return `{}` instead of original `json`
2024-07-23 08:59:16 +02:00
Julian Vennen
3e263ce3fc
php: Fix typedoc comment for headers in ApiException ( #19217 )
2024-07-23 10:00:48 +08:00
Peter Storch
08e2653935
fix #18555 kotlin-spring generator flag appendRequestToHandler generates broken code when used with flag delegatePattern ( #19206 )
2024-07-22 08:32:31 +01:00
William Cheng
e40d3228aa
Update CXF to newer version ( #19210 )
...
* update cxf to newer version
* better format
2024-07-22 00:30:51 +08:00
Christian Beikov
b5d5e572e0
Get rid of a bunch of Javadoc errors ( #19209 )
2024-07-21 18:48:18 +08:00
Nikita Vakula
e542b06869
[python-fastapi] return 500 if not implemented, added some unittests ( #19196 )
...
* [python-fastapi] Added some tests for FastAPI generator
1. Checks the generation of the implementation package.
2. Checks if the endpoints with and without descriptions generate correct
output.
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com >
* [python-fastapi] Raise 500 if there is no implementation
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com >
---------
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com >
2024-07-19 16:14:16 +08:00
Dimitar Tomov
f44bc30d20
[Kotlin][Spring] Fix RequestPart handling for multipart request ( #19058 )
...
* [Kotlin][Spring] Fix RequestPart handling for multipart request
* [Kotlin][Spring] Add sample spec for kotlin multipart request model
---------
Co-authored-by: dimitar.tomov <dimitar.tomov@scalefocus.com >
2024-07-19 00:58:51 +08:00
Erik Erbar
aaf3ea2528
[FIX][typescript-fetch] Fix duplicate imports for models with a discriminator ( #19195 )
...
* add new typescript-fetch self import issue sample
* add a new typescript-fetch self import issue config
* generate sample
* regenerate sample
* Prevent duplicate typescript imports
* Update generated samples
* Filter imports instead of discriminators mapped models
* Update generated samples
---------
Co-authored-by: GeroSchaarmann <Gero.S97@web.de >
2024-07-18 16:24:21 +02:00
Horace Li
e59a4ab8f8
Java libraries validation-api may use javax imports but dependency always uses jakarta namespace ( #19171 )
...
* java libraries bean validation use jakarta
* java libraries bean validation use jakarta
* java libraries bean validation use jakarta
2024-07-18 16:59:55 +08:00
William Cheng
47abf82164
[java] update rest-assured, retrofit2, vertx to use junit 5 ( #19185 )
...
* update rest assured to use junit 5
* regenerate samples
* update junit from 4 to 5 for retrofit2, vertx
* update vertx test template
2024-07-18 16:16:27 +08:00
Peter Storch
2f5529a184
fix #11353 use @get:JsonProperty instead of @field:JsonProperty ( #19186 )
2024-07-17 12:06:32 +01:00
Nicklas Wiegandt
045f4b6067
fix (JAVA SPRING RESTCLIENT) 19137: Fix missing imports when using withXml for Spring RestClient and fix its README ( #19146 )
2024-07-17 17:47:33 +08:00
Nikita Vakula
cfcc2c89d6
[python-fastapi] Fix api endpoint template ( #19139 )
...
* [python-fastapi] Fixed endpoint template
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com >
* [python-fastapi] Fixed base class methods definition
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com >
* [python-fastapi] Updated samples
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com >
---------
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com >
2024-07-17 12:31:25 +08:00
Nicklas Wiegandt
3dc3ee08bc
test (JAVA SPRING RESTCLIENT) Add echo tests for the Spring 6 RestClient ( #19145 )
...
* test (JAVA SPRING RESTTEMPLATE) 17571: Add echo-api multipart form single file test
* feat (JAVA SPRING RESTCLIENT) 18522: Add RestClient to README
* test (JAVA SPRING RESTCLIENT) 18522: Add RestClient echo all of Pet test
* test (JAVA SPRING RESTCLIENT) 18522: Add RestClient echo body free form object response string test
* test (JAVA SPRING RESTCLIENT) 18522: Add RestClient echo body pet test
* test (JAVA SPRING RESTCLIENT) 18522: Add RestClient echo body pet response string test
* test (JAVA SPRING RESTCLIENT) 18522: Add RestClient echo body string enum test
* test (JAVA SPRING RESTCLIENT) 18522: Add RestClient echo body tag response test
* test (JAVA SPRING RESTCLIENT) 18522: Add RestClient echo form tests
* test (JAVA SPRING RESTCLIENT) 18522: Add RestClient echo header test
* test (JAVA SPRING RESTCLIENT) 18522: Add RestClient echo path test
* test (JAVA SPRING RESTCLIENT) 18522: Add RestClient echo query tests
* feat (JAVA SPRING RESTCLIENT) 18522: Regenerasted API Clients for RestClient with fixed import indentation
2024-07-17 12:19:31 +08:00
William Cheng
a330a1f38e
update samples
2024-07-17 00:27:17 +08:00
Liri S
0002f8c506
Support net8 in aspnetcore ( #19051 )
...
* Support net8 in aspnetcore
* gen
* typo
* more
* default swashbuckle
* gen
---------
Co-authored-by: Liri S <liri@ownid.com >
2024-07-17 00:02:41 +08:00
Giuseppe Tribulato
9ae8775987
Close #19129 : java jersey2 and jersey3: Always cast path parameters to string similarly to okhttp-gson ( #19161 )
2024-07-16 18:09:05 +08:00
Martin Delille
49e33188cf
[qt-cpp] Remove Qt support before Qt 5.15.2 ( #19164 )
2024-07-16 17:51:14 +08:00
Christian Beikov
94264e5598
Get rid of a bunch of Javadoc errors ( #19162 )
2024-07-16 17:49:21 +08:00
CirnoV (Sickle)
a81b736b24
Allow array items in TypeScript to be nullable ( #19157 )
...
* Allow array items in TypeScript to be nullable
* Regenerate samples
* Remove duplicate nullable array items codegen
2024-07-16 09:40:17 +02:00
Peter Storch
75e3be39cb
fix #19156 @RestController annotation at Kotlin-Spring API interface ( #19158 )
2024-07-15 14:18:16 +01:00
Julian Kalinowski
304ff96577
[Swift] fix( #18074 ): correctly map OpenAPIDateWithoutTime to string in path ( #18077 )
2024-07-15 14:10:00 +01:00
Tolga Akkiraz
7f01a354a5
[Kotlin] Fix invalid gradlew.bat templates ( #19165 )
...
* Fix invalid gradlew.bat templates
* Update samples
2024-07-15 20:57:58 +08:00
William Cheng
b705972cad
Upgrade rust-hyper to use hyper 1.0 ( #19115 )
...
* Upgrade to rust-hyper to use hyper 1.0
* Update rust-hyper samples for hyper 1.0 upgrade
* update cargo
* update samples
* update samples
* update doc
* Default client configuration for rust-hyper
---------
Co-authored-by: Krishna Rajendran <krishna@emptybox.org >
2024-07-14 22:11:08 +08:00
Jeremy Audet
722be84cac
Update call to assertDictContainsSubset() ( #19122 )
...
`TestCase.assertDictContainsSubset()` was deprecated in Python 3.2,
which went EOL in 2016. Rewrite the assertion to target Python 3.8+.
See: https://docs.python.org/3.2/library/unittest.html#unittest.TestCase.assertDictContainsSubset
See: https://devguide.python.org/versions/
2024-07-13 18:28:26 +08:00
Tim Grein
7b52da5d57
[go-server] Add information, where the server runs to generated README.md ( #19141 )
...
* Add information, where the server runs to README.md
* Update samples
2024-07-13 16:35:04 +08:00
Zane Pickett
8938f9dea1
[Ruby] Fix Content-Transfer-Encoding binary unpacking ( #19132 )
2024-07-11 14:52:38 +08:00
condorcorde
2940d3219c
[PowerShell] Support ApiKeyPrefix ( #19133 )
...
* Support for ApiKeyPrefix
* Additional files after build
2024-07-11 14:38:16 +08:00
William Cheng
9948ed2cfa
[dart-dio] fix JsonObject missing on a generated code #16585 ( #19130 )
...
* fix: issue 16261. JsonObject is missing on a generated code
* update samples
---------
Co-authored-by: toriumi0118 <toriumi0118@gmail.com >
2024-07-10 21:15:37 +08:00
Jeremy Audet
a4292c5db5
Update poetry lockfile ( #19123 )
...
Updated with `poetry lock`. This makes it possible to execute `poetry
run -- python -m unittest discover` and the like.
2024-07-10 17:22:01 +08:00
Wei Shih
42b0b20891
[k6] Add authentication variables in headers and cookies ( #19060 )
...
* Add global auth parsing including headers and cookies for k6.
* Add global auth statements.
* Generate samples.
* Revert "Generate samples."
This reverts commit b8cff8691b .
* Copy petstore-with-fake-endpoints-models-for-testing.yaml to a seperate k6 path as its example yaml file.
* Add global security statement in k6 example yaml instead of using the generic one.
2024-07-10 17:09:43 +08:00
William Cheng
5fdcd4857b
[okhttp-gson] migrate to jakarta.ws.rs ( #19113 )
...
* javax.ws.rs:javax.ws.rs-api package was renamed on maven
* update dependencies for java okhttp pom, build.sbt
* update
* update dep
---------
Co-authored-by: Andres Aguilar <andresesfm@gmail.com >
2024-07-10 17:07:54 +08:00
Clément Denis
705d853baa
Update okhttp3 to 4.12.0 for Maven projects ( #19118 )
2024-07-10 11:12:57 +08:00
William Cheng
039f0b85f6
Add BearerAuthInterceptor to dart-dio library exports ( #19111 )
...
* Update lib.mustache
Add missing export to dio template
* update samples
---------
Co-authored-by: Moshe Dicker <75931499+dickermoshe@users.noreply.github.com >
2024-07-09 16:26:15 +08:00
Cameron Koegel
1841f57863
[Ruby] Allow Overriding Accept Header ( #19106 )
...
* [Ruby] Allow Overriding Accept Header
* generate samples
2024-07-09 15:34:07 +08:00
Jeremy Audet
5da4f50dac
Fix call to TestCase.assertEqual() ( #19091 )
...
`TestCase.assertEquals()` does not exist.
2024-07-09 02:06:22 +08:00
aaronforest-wf
8ab3bb491b
Remove thread unsafe statusCode and responseHeaders instance variables from apache http ApiClient ( #19054 )
...
* remove thread unsafe statusCode and responseHeaders instance variables
* re-add status code and header getters for backwards compatibility
* add import
* whitespace cleanup
* use deprecated thread id getter for backwards compatibility with pre-19 java
2024-07-08 21:48:52 +08:00