Renuka Fernando
858d5fd8b7
Set appropriate statusCode from examples ( #19501 )
...
Issue: OpenAPITools/openapi-generator#19446
2025-04-27 15:18:28 +08:00
Lucas Reeh
f656afcde3
Add original enumPropertyNamingType config for java enum generation ( #20824 )
2025-04-27 15:00:51 +08:00
roseatromero
de310f6ee1
Fix associative container on json values ( #20606 )
2025-04-27 00:17:52 +08:00
martin-mfg
9f3a73f81a
[spring]addition: api response examples + spring generator generates response examples ( #17610 , #16051 ) ( #20933 )
...
* addition: api response examples; spring's api.mustache generates response examples
* update samples
* added 2 sample configs; adsjuted to only generate examples for application/json
* added test
* remove accidentally added files
* small cleanup
* add new samples to workflow
---------
Co-authored-by: GlobeDaBoarder <glebivashyn@gmail.com>
Co-authored-by: William Cheng <wing328hk@gmail.com>
2025-04-27 00:10:09 +08:00
Ross Sullivan
35ba0414fb
[rust] Fix for allOf multi model with only metadata fields ( #20892 )
...
* Fix for allof multi model with only metadata fields
* Update samples
* fixed compiler errors in java 17 and lower
* refactored isMetadataOnlySchema to ModelUtils.java
2025-04-26 23:44:56 +08:00
Mattias Sehlstedt
1eee6038df
Fixes so that a oneOf schema with a single sub-schema is simplified ( #21043 )
...
* Fixes so that a oneOf schema with a single sub-schema is simplified when SIMPLIFY_ONEOF_ANYOF is set to true
* Adjusts oneOf_array test to ensure that it is generated as an interface instead of being simplified
* Update ruby samples so that they no longer refer to a model that is now gone due to the schema being simplified
2025-04-26 22:53:21 +08:00
David Riddervold Marconis
02204d0e4b
fix: [csharp] JsonConverter anyof ( #21137 )
2025-04-26 22:21:02 +08:00
paul-kraftlauget
bbc0b4a79f
[kotlin-client][jvm-spring-restclient] Fix metrics URI templating for RestClient ( #21149 )
...
Spring configures uriTemplate attribute and not generated code
2025-04-26 22:20:16 +08:00
paul-kraftlauget
f9549479c9
[kotlin-client][jvm-spring-webclient] Fix metrics URI templating for WebClient ( #21148 )
...
Spring configures uriTemplate attribute and not generated code
2025-04-26 22:19:39 +08:00
Ross Sullivan
1c62f839c5
Fixed Rust model files not matching module imports causing compiler errors ( #21134 )
...
* fix(rust): Fixed Rust model files not matching module imports causing compiler errors
* chore(rust): Update samples with a duplicate model test
* update samples
---------
Co-authored-by: Ross Sullivan <rosssullivan101@gmail.com>
2025-04-26 22:03:28 +08:00
Bruno Coelho
f950ac97e8
[swift][client] make QueryStringEncodable return any Sendable ( #21142 )
...
* [swift][client] make QueryStringEncodable return any Sendable
* [swift][client] rename QueryStringEncodable to ParameterConvertible
* [swift][client] update migration docs
* Revert "[swift][client] update migration docs"
This reverts commit 00a490536df393c4075e3e739b2e33446f614988.
* [swift][client] rename QueryStringEncodable to ParameterConvertible
2025-04-25 14:40:58 +01:00
William Cheng
35b94dff7a
[csharp] fix "Simplify 'default' expression (IDE0034)" messages ( #21147 )
...
* [csharp] reduce IDE0034 messages in generated code
* [csharp] regenerate all samples
---------
Co-authored-by: Fabian Buchenberger <37747351+ffabss@users.noreply.github.com>
2025-04-25 18:01:14 +08:00
xtroce
6ee94d636b
issue-20718 fixed code generation for jersey2/3 and okhttp-gson when using modelMapping with a package and anyOf/oneOf ( #20721 )
...
Co-authored-by: Sebastian Droeppelmann <sebastian@d-liver.solutions>
2025-04-25 17:13:36 +08:00
Paul Horton
bdb063f170
fix: Support PathParams not of primitive types for Go in generated tests ( #21107 )
...
* fix: Support PathParams not of primitive types for Go in generated tests
Signed-off-by: Paul Horton <phorton@sonatype.com>
* use tabs consistently
---------
Signed-off-by: Paul Horton <phorton@sonatype.com>
2025-04-25 17:09:11 +08:00
saulgillEST
c14c7a0421
Enhancement: Allow MergedSpecBuilder title, version and description to be configured #20822 ( #20839 )
2025-04-25 16:44:41 +08:00
Michael Düsterhus
27a705efd5
[fix][java]Add missing generated annotation to Authentication.mustache ( #21125 )
...
* Add generated annotation to Authentication.mustache
* Update Authentication.mustache jersey2
* Update Authentication.mustache jersey3
* Update Authentication.mustache okhttp
* Update Authentication.mustache restclient
* Update Authentication.mustache resttemplate
* Update Authentication.mustache vertx
* Update Authentication.mustache webclient
* doc: regenerate samples
2025-04-25 16:35:51 +08:00
Julian Kalinowski
f9dedd74ec
[kotlin] [multiplatform] [jvm-ktor] Fix formdata file upload ( #21056 )
...
* fix: kotlin multiplatform form-data file upload
* generate samples
* fix form data binary for jvm-ktor
2025-04-25 16:30:25 +08:00
Enrique Fernández
be77442bff
feat: support bearer authentication ( #21110 )
2025-04-25 16:17:32 +08:00
William Cheng
3fa806006b
[python-fastapi] update h11, httpx to newer versions ( #21145 )
...
* update h11 to newer versions
* update httpx to newer version
2025-04-25 16:14:26 +08:00
Enrique Fernández
0462bed734
fix: wrong typespec generation for all-of with single ref ( #21139 )
2025-04-25 16:06:06 +08:00
Łukasz Suski
d02c0f493e
[Kotlin] [Retrofit2] [Coroutines] [Client] Option to remove Response<> wrapper in operation return types ( #20613 )
...
* Add useResponseAsReturnType option to kotlin, jvm-retrofit2 and coroutines api template (#15491 )
* Add useResponseAsReturnType flag to kotlin-jvm-retrofit2-coroutines.yaml sample
* Generate sample
2025-04-25 08:45:47 +01:00
jase
dfbe985db3
fix(typescript-angular): enable "exactOptionalPropertyTypes" and ensure assignments align with type definition ( #20451 )
...
* fix(typescript-angular): enable "exactOptionalPropertyTypes" and ensure assignments align with type definition
* fix(typescript-angular): update condition checks to explicitly compare with undefined
* chore(gradle): add autogenerated properties file for OpenAPI Generator
2025-04-23 14:08:21 +02:00
CG
a7159f6bcb
[BUG][kotlin-spring] Fix defaultValue for RequestHeader is not generated ( #20504 ) ( #21003 )
...
* [BUG][kotlin-spring] Fix defaultValue for RequestHeader is not generated (#20504 )
* revert apiDelegate changes
* fix: fix unresolved reference for enum type
2025-04-23 17:25:47 +08:00
William Cheng
3b6b55144d
fix gradle.properties in java client ( #21129 )
2025-04-23 17:05:04 +08:00
Kai-Uwe Hüber
28daa68943
Check if enum_values exists in the serverUrl [csharp] ( #21122 )
...
* check if enum_values are existing
If no enum_values are given for in a serverUrl, the check must be ignored.
* update samples
---------
Co-authored-by: William Cheng <wing328hk@gmail.com>
2025-04-23 16:26:41 +08:00
Ronan Pozzi
d589f5db11
[java][native]Delete unused gradle.properties template in native library ( #21128 )
...
The gradle.properties.mustache template was empty. Removing this override allow to specify gradleProperties while using native library
Co-authored-by: Ronan Pozzi <ronan-pozzi@asys.fr>
2025-04-23 16:23:35 +08:00
Ross Sullivan
caf22add95
[rust] Fixed nullable byte arrays ( #20720 )
...
* [rust] fixed nullable byte arrays
* Updated tests and samples
* updated type test
* Added double option support
* updated samples
2025-04-23 16:13:53 +08:00
jheyens
e767496357
Jersey2: Move setting of authentication parameters before generating target URL to consider API keys in URL parameters ( #20688 )
...
* Move setting of authentication parameters before generating target URL to consider API keys in URL parameters
* Regenerate Jersey2/3 examples
2025-04-23 16:04:26 +08:00
João Brilhante
d2e20253e4
[java][restclient] Fix model combining properties and additional properties ( #20947 )
2025-04-23 15:57:57 +08:00
Henrik Gerdes
abce11152e
fix(fastapi): use correct impl & package name with custom values ( #20970 )
...
Signed-off-by: Henrik Gerdes <hegerdes@outlook.de>
2025-04-23 15:57:21 +08:00
30p87
ee7927a525
[Java][Spring] remove 'size', 'page' and 'sort' query params if using 'x-spring-paginated' ( #8315 ) ( #21016 )
...
* [Java][Spring] remove 'size', 'page' and 'sort' query params if using 'x-spring-paginated' (#8315 )
* Properly implement samples, fixing build issues
---------
Co-authored-by: Tobias Fischer <t.fischer@goldflam.de>
2025-04-23 15:47:17 +08:00
PidgeyBE
72de5bc952
[Python] Fix the post processing of string enums ( #20976 )
...
* fix/ x-enum-varnames in python
* make x-enum-varnames examples more clear
* make x enum varname usage more explicit
* fix tests
* trigger tests
* trigger tests once again...
* fix more tests
2025-04-23 15:45:44 +08:00
Simon Podlipsky
d4d14204e8
fix(php-nextgen): always return if not void ( #21119 )
2025-04-23 15:40:57 +08:00
jheyens
a66dd20783
Jersey2: Do not reinitialize ClientConfig with default values when building HTTP Client ( #20687 )
...
* Do not reinitialize ClientConfig with default values when building HTTP Client
* Regenerate Jersey2/3 examples
2025-04-23 15:24:22 +08:00
Juan Treminio
346231083f
[PHP] - Add FormDataProcessor to handle nested ModelInterface data ( #20990 )
...
* [PHP] - Add FormDataProcessor to handle nested ModelInterface data
* Generating samples
* Updates php-nextgen and psr-18
* Adds tests
* Some more tests
* One last test
* Updating files
* Fixing diff
* Test fix
* Updating samples
2025-04-23 15:16:47 +08:00
Kevin Lin
b844d8d4cd
[Java] ApiClient: support deserializing from InputStream instead of String to bypass 2GB Java String limit ( #21115 )
...
* ApiClient: support deserializing JSON from InputStream instead of String to bypass 2GB Java String limit
* Update test_file_list.yaml
2025-04-23 14:59:02 +08:00
Antoine Reilles
338f7f2a09
cxf file upload should only present Attachment ( #21124 )
...
The InputStream is not necessary, as it can be obtained from the
Attachment object via getInputStream().
2025-04-23 14:53:42 +08:00
Jenny G. L.
80ab53b2ce
[scala][client]: scala-http4s scala3 client: minor improvement (allow empty string in optional enum to pass as None) ( #21025 )
...
* [scala][http4s][client]: add enum method; remove implicit
* improve error handling
* more enum enhancement
* remove unused
* update samle
* avoid breaking change
* [Scala][Client][HTTP4s]: when enum is optional, avoid throwing exception when it's empty string
---------
Co-authored-by: Jenny Leahy <jennyleahy@JENNYLEAHY.localdomain>
Co-authored-by: Jenny Leahy <jennyleahy@Mac.localdomain>
2025-04-23 14:21:33 +08:00
Enrique Fernández
3233eff187
[fix][elixir] faulty free-form object type spec ( #21113 )
...
* fix: faulty free-form object type spec
* add implicit free-form object example
2025-04-23 14:17:10 +08:00
Bruno Coelho
64d9719d39
[swift6][client] All models conform to Codable so this method should not be needed anymore ( #21117 )
...
* [swift6][client] All models conform to Codable so this method should not be needed anymore
* [swift6][client] All models conform to Codable so this method should not be needed anymore
2025-04-22 11:58:53 +01:00
Bruno Coelho
7f64d906a5
[swift6][client] Make it possible to opt out of JSONEncodable conformance ( #21116 )
2025-04-22 10:47:00 +01:00
Enrique Fernández
2fb59ff258
doc: remove references to petstore ( #21111 )
2025-04-21 15:42:09 +08:00
RickyRister
4c08ff865d
[Java][Vertx] Add option to generate methods that return Futures ( #21083 )
...
* [Java][Vertx] Add option to generate methods that return Futures
* run scripts
* update sample config and github workflow
* generate samples
* rerun script
* add vertx-no-nullable to samples workflow
2025-04-18 21:53:08 +08:00
Moritz Weber
c67b1132ec
[typescript-angular] add license information for BaseService ( #21104 )
...
The new BaseService was added in #20681 , but the license information was not added.
2025-04-17 16:39:23 +02:00
Sri Sushma Karra
f9f5af5ed9
[JAVA][FEIGN] Removing hardcoded HTTP Client which is causing performance issues ( #21085 )
...
* [JAVA][FEIGN] Removing hardcoded HTTP Client
Fixing performance issues
* Updating samples for Java Feign performance betterment changes
* added APIClient.java for feign-hc5
2025-04-17 17:13:07 +08:00
Andrew Wilson
5e446b4147
[feat] [protobuf] Improve protobuf generator by adding custom options for api and model files ( #21075 )
...
* add custom options
* fixing docs
* typo
2025-04-17 13:11:34 +08:00
lucy66hw
b4378a6277
[Protobuf Schema] Map Field Handling in Composed Schemas ( #21002 )
...
* Address map under composed schema
Add explanation to code block
* add comment to explain the code block
2025-04-16 16:33:22 +08:00
Andrew Wilson
1136872cd5
[feat] [protobuf] Improve protobuf generator with switch useSimplifiedEnumNames ( #21052 )
...
* improving with simple enum names
* adding test case
* fixing docs
* fixing param name
* fix docs
2025-04-16 16:32:36 +08:00
devhl-labs
ffefebdd88
[csharp] Process webhook operations ( #21082 )
...
* process webhook operations
* process webhook operations
* build samples
2025-04-16 16:30:53 +08:00
NavruzshoevDaniel
7a57b80955
[BUG][Kotlin][WebClient] ApiClient is not compatible with spring-web 6 Observation API ( #21020 )
2025-04-16 15:25:22 +08:00