Devon
5ad2f84650
[Ruby] Fixes anyOf Support in Responses ( #22392 )
...
* [Ruby] Fixes anyOf Support in Responses
* re-gen samples
* Revert "re-gen samples"
This reverts commit 1b4d85d359011a78e282b71b24d096a1b5c3b0e7.
2025-11-20 09:59:43 +08:00
William Cheng
74be550d94
update go-gin crypto to newer version ( #22395 )
2025-11-20 09:44:53 +08:00
William Cheng
554e10dc34
Fix siblings of $ref using allOf in openapi normalizer ( #22364 )
...
* fix ref sibiling using allOf in normalizer
* update samples
2025-11-19 20:35:07 +08:00
William Cheng
6699ecd9d2
update jersey3 to newer version ( #22388 )
2025-11-19 19:19:54 +08:00
Xi Lu
9655c22ff6
[Protobuf] Add isEnumSchema check in generateNestedSchema ( #22384 )
...
Co-authored-by: xil <xil@uber.com>
2025-11-19 17:46:43 +08:00
Daniil Iastremskii
e86daf9059
Add support for oneOf with discriminator when using kotlinx.serialization ( #22373 )
...
* Generate wrappers for oneOf with discriminator when using kotlinx.serialization
* Add spec with oneOf using discriminator
* Add config to generate samples
* Generate samples
* Update samples
* Change naming of wrapper classes
* Fix empty model test
* Update GH workflow with new samples
2025-11-19 02:55:37 +08:00
Jachym Metlicka
c52cc1f275
[kotlin-spring][server] Feat: Make it possible to include "HttpServletRequest" or "ServerWebExchange" as a method parameter in controller interfaces and/or implementations ( #22263 )
...
* modify templates to enable possibility to add reactive or blocking request context
* add logic to enable additional property
* regenerate files
* regenerate documentation
* revert unrelated formatting changes
* revert commented out code
* add tests
* refactor test to DRY them a bit
* move tests around
* increase tests coverage
* fix for delegate
* fix for delegate - and refactor tests
* fix tests
* refactor tests
* add tests for delegate
* add kotlin project compile check test for include-http-request-context
* fix
* fix
* fix output folder naming. Add the sample to github action config file.
* add missing interfaces to fix compilation
* regenerate samples
* fix also api_test.mustache to enable testing
* add tests for generated tests
2025-11-19 00:29:07 +08:00
dsteeley
2c7efda060
Update rust-server swagger dependency to 7.0 ( #22365 )
2025-11-17 18:59:28 +08:00
Levi Lutz
a52e902cb5
[RUST] Fix #22356 / Introduce useSerdePathToError option to improve JSON error messages ( #22357 )
...
* Add CLI option
* Add dep to generated Cargo.toml
* Add new `Error::SerdePathToError` error type
* Add `serde_path_to_error` invocation to API layer
* Add sample for serde-path-to-error
* Add arg & docstring to cliOptions as well
* Fix sample
2025-11-16 22:13:55 +08:00
ddl-rliu
547eee1970
[BUG] Fix #22351 by updating exceptions.mustache to log both the response data and response body, when applicable ( #22352 )
...
* Update exceptions.mustache
* Add autogen files
2025-11-16 22:06:23 +08:00
Jachym Metlicka
c1c74c0ec8
[kotlin-spring][server] Feat: Add Spring Declarative HTTP Interface support for easy client instantiation ( #22302 )
...
* add required template files and logic in generator
* add possibility to choose between coroutines and reactor style reactive for spring declarative http client
* remove Flow as array-type input param for declarative http interface
* better name for switches
* revert change
* fix implementation and add tests
* revert unrelated formatting changes
* add compile check for generated code to github action config file
* fix output folder for config files
* commit generated files
* commit generated docs files
* fix compile test output folder names
* fix sample generation
* fix compile to jdk 17+
* force test rerun
* remove misleading warning
* remove extraneous mustache files. Rebuild samples
* restoring incorrectly deleted output files
2025-11-16 21:54:19 +08:00
Ilya Nemtsev
ecb1e9e2cb
[JAVA][NATIVE] Add gzip capability ( #22358 )
...
* add gzip capability
* fixed test
* added docstring
* regenerated samples
2025-11-16 21:23:08 +08:00
Daniil Iastremskii
039de98d4f
Fix generation of an empty data class when using kotlinx.serialization ( #22350 )
...
* Fix generation of an empty data class
* Add a test
* Delete polymorphicJacksonSerialization artifacts on exit
2025-11-16 18:59:21 +08:00
William Cheng
6892768009
[typescript-axios] add support for accept headers ( #22318 )
...
* cherry pick the change from 22299
* fix accept headers
2025-11-15 14:40:58 +08:00
dsteeley
fd72d4d521
Merge branch 'allow-trait-mocking' into 'rust-openapi' ( #22332 )
...
allow trait mocking
See merge request tools.core/swagger-codegen!379
Co-authored-by: Richard Whitehouse <richard.whitehouse@metaswitch.com>
2025-11-13 13:45:30 +08:00
dsteeley
1e3f6d0ed9
Refresh rust-server Cargo.toml wiht updated dependencies and move jsonwebtoken to dev-deps ( #22338 )
2025-11-12 19:18:14 +08:00
William Cheng
57d304f3f6
add tests for deprecated enum class ( #22335 )
2025-11-12 16:09:42 +08:00
Christopher Molin
ec8ca20dec
[Java] Support Deprecation of Generated enum-classes ( #22312 )
...
* [Java] Annotate Deprecated `enum`-classes with `@Deprecated`
* Update Generated 'samples'-files
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com>
* Update `modelEnum.mustache` According to Review Comment
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com>
* Update Generated 'sample'-files
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com>
* Update Java Native `modelEnum.mustache` File
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com>
* Update Java JaxRS `modelEnum.mustache` File
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com>
* Update Java Okhttp-gson `modelEnum.mustache` File
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com>
* Update Java Micronaut `modelEnum.mustache` File
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com>
* Update Java Helidon `modelEnum.mustache` File
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com>
---------
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com>
2025-11-12 15:33:28 +08:00
Olek Janiszewski
2ab5365fb2
Fix kotlin codegen for enum with int items ( #22324 )
2025-11-11 22:18:43 +08:00
dsteeley
2326eef7cf
Fixups for rust-server hyper1 support ( #22321 )
2025-11-11 18:27:11 +08:00
Julian Vennen
d318752478
[php][php-nextgen] fix return type if empty and non-empty responses are mixed ( #22322 )
2025-11-10 22:06:21 +08:00
Julian Vennen
86ff873a03
[php][php-nextgen] fix array enum query parameters ( #22320 )
2025-11-10 19:14:41 +08:00
rignicat
28e2254e7a
[JAXRS] Partial revert changing path generation if interface, fixes #22279 ( #22316 )
...
* Partial revert changing path generation if interface
This reverts commit 65703ff320469759673548de7619189c172a88dd.
* update samples and docs
2025-11-10 16:54:06 +08:00
Raoul de Haard
b1f2a67bc3
[JAVA jaxrs-spec gen] add option for generating swagger V3 annotations ( #22300 )
...
* feat: add support for Swagger v3 annotations to jaxrs-spec
* test added unittest for jaxrs-spec with swagger3Annotations
* test added integrationtest for jaxrs-spec with swagger3Annotations
* test added integrationtest for jaxrs-spec with swaggerV2Annotations
* documentation update for new option useSwaggerV3Annotations in the jaxrs-spec.md
* test added integrationtest for jaxrs-spec with swaggerV3Annotations icm use JakartaEE
* update documentation by executing: ./bin/utils/export_docs_generators.sh
* ran on wsl: ./bin/generate-samples.sh ./bin/configs/*.yaml
2025-11-10 14:50:10 +08:00
BiekerUdan
48648a4051
fix(c): Remove duplicate code generation for UUID path parameters ( #22285 )
...
* fix(c): Remove duplicate code generation for UUID path parameters
The C generator was generating duplicate path parameter handling code
when a parameter had format: uuid. This occurred because UUID parameters
have both isString=true and isUuid=true flags set, causing both the
{{#isString}} and {{#isUuid}} template blocks to execute.
The duplicate {{#isUuid}} block has been removed since it generated
identical code to the {{#isString}} block. This makes UUID parameters
consistent with email parameters, which already work this way
(isEmail=true and isString=true, but only use the {{#isString}} block).
The generated code now compiles successfully without duplicate variable
declarations.
* test(c): Add UUID path parameter test case to petstore
Adds endpoint with UUID path parameter to verify C generator produces compilable code without duplicate variable declarations.
* chore(samples): Regenerate all C samples with template fix
Regenerated all C sample variants to include the UUID path parameter example.
2025-11-10 14:36:58 +08:00
William Cheng
a6c753ea69
php template minor refactoring ( #22310 )
2025-11-09 17:22:18 +08:00
William Cheng
81285b75e4
add exts alias to simply the templates (rust-server) ( #22309 )
2025-11-09 15:42:14 +08:00
William Cheng
c596bb7d8a
add check for optionl to show null in doc (php) ( #22307 )
2025-11-08 23:12:27 +08:00
Enric Pou
ce338a4a23
Added UUID support in python docs ( #22301 )
2025-11-08 22:29:12 +08:00
Achton Smidt Winther
fb444bf15e
[php] Fix PHP generator validation for nullable required properties ( #22292 )
...
* [php] Fix null+required properties to accept null values in generated models. Also fix PHP annotations related to same.
* [php] Update samples.
2025-11-08 22:28:37 +08:00
macmanad
a144678459
[csharp][generichost] Fix format string parameter ( #22282 ) ( #22283 )
...
* [csharp][generichost] Fix format string parameter (#22282 )
* Update samples
2025-11-08 21:54:42 +08:00
William Cheng
95b9438fd9
add tests for api key name in ccp rest sdk ( #22306 )
2025-11-08 21:38:06 +08:00
Devon
7beb8a6102
[cpp-rest] Fixing Incorrect Header Name Used ( #22298 )
2025-11-08 21:19:07 +08:00
Devon
2107686d3d
[Rust Reqwest] Fixes Enums in Query Parameters via Causing Compilation Failure ( #22281 )
...
* [Rust Reqwest] Fixes Enums in Query Parameters via Causing Compilation Failure
* regen
2025-11-08 20:56:07 +08:00
Mattias Sehlstedt
7486f12e62
Correct unsafe pistache documentation link ( #22296 )
...
* Replace outdated/incorrect documentation link with correct https version
* Generate samples
2025-11-08 15:04:52 +08:00
Enric Pou
600c051fa5
Dart Dio: fix typo in markdown files ( #22293 )
2025-11-08 15:04:06 +08:00
Enric Pou
f37b8cce58
Add UUID examples and documentation ( #22303 )
2025-11-08 14:56:46 +08:00
William Cheng
64c8711356
[python] Fix pyproject (poetry 2.x) for httpx ( #22289 )
...
* fix poetry 2 httpx dependencies
* use poetry 2 for tests
2025-11-06 14:09:54 +08:00
Michael Munch
65359d8050
[Java] Use new location for hibernate validator ( #22287 )
...
* Use new location for hibernate validator
org.hibernate:hibernate-validator -> org.hibernate.validator:hibernate-validator
* Update samples
* Update samples
---------
Co-authored-by: Michael Munch <mmu@bankdata.dk>
2025-11-06 01:42:18 +08:00
Linh Tran Tuan
7ce0096e73
[Rust-Axum] Fix Regex ( #22277 )
2025-11-04 13:35:51 +08:00
Aman Rao
0ae50f5a10
Fixes #22146 . Fixed the code to call the correct method to prevent duplication of Prefix added to the model when using --model-name-prefix ( #22188 )
...
* Fixes #22146
* Added handling for when super.getSchemaType method
returns null
2025-11-03 15:26:22 +08:00
William Cheng
3347204425
[java][microprofile] Using incorrect @Multipart instead of @FormParam ( #22266 )
...
* fix : #10618 Using incorrect @Multipart instead of @FormParam in microprofile java client
[BUG][JAVA] Using incorrect @Multipart instead of @FormParam when generated Microprofile java client #10618
https://github.com/OpenAPITools/openapi-generator/issues/10618
* fix : #10618 put updated samples under sourcecontrol
* fix : #10618 delete configoption disableMultipart for microprofile
* fix : #10618 put updated samples after cleanup of "disableMultipart"
* fix : #10618 make samples compile and switch jandex-maven-plugin
* fix : #10618 sync my fork with upstream & clean pom
* fix : #10618 regenerate samples
* fix : #10618 microprofile-rest-client-with-useSingleRequestParameter
* update
* update
---------
Co-authored-by: Riedlinger, Jochen (IT 480) <jochen.riedlinger@l-bank.de>
Co-authored-by: Jochen Riedlinger <j_ri@gmx.de>
Co-authored-by: Jochen Riedlinger <14962274+jochenr@users.noreply.github.com>
2025-11-02 16:56:10 +08:00
Lars van Leeuwen
93d7821281
Patch dependencies ( #22262 )
2025-10-31 22:08:58 +08:00
Marcel Jacek
66b742038a
fix(java): default values from allOfs are not correctly definied ( #22200 )
...
* fix: extend check for default values of integer and number schema
* add testcases to openapi specs
* generate java clients with the updated fix
2025-10-31 15:58:20 +08:00
William Cheng
9b8ab659ac
update undertow to newer version ( #22259 )
2025-10-31 13:27:43 +08:00
William Cheng
f9d2b8b579
Prepare v7.18.0 release ( #22250 )
...
* Revert "v7.17.0 release (#22248 )"
This reverts commit 0120486e6207b41cdd18b89eaf25f061ac87195a.
* prepare v7.18.0 release
* update samples
* update doc
2025-10-30 01:25:35 +08:00
William Cheng
0120486e62
v7.17.0 release ( #22248 )
2025-10-30 00:18:40 +08:00
Ivan ROGER
44075c9edf
Fix explode query params for typescript-fetch ( #22246 )
...
Fixes : #10438
2025-10-29 16:28:00 +01:00
William Cheng
3d4f29eac7
[PYTHON-FASTAPI] update starlette to newer version 0.49.1 ( #22243 )
...
* update starlette to newer version 0.49.1
* update fastapi to newer version
2025-10-29 15:18:27 +08:00
William Cheng
351b601368
openapi-normalizer: Add REMOVE_PROPERTIES_FROM_TYPE_OTHER_THAN_OBJECT normalize option ( #22236 )
...
* fix bug 21680: Introduce REMOVE_PROPERTIES_FROM_TYPE_OTHER_THAN_OBJECT normalize option
* Advise to use REMOVE_PROPERTIES_FROM_TYPE_OTHER_THAN_OBJECT
* update doc
---------
Co-authored-by: Guillaume ALAMOME <guillaume.alamome@gmail.com>
2025-10-28 13:54:49 +08:00