Commit Graph

8711 Commits

Author SHA1 Message Date
Erwin de Haan
29befb95d2 Make TokenProvider not contain state so subclassing actually works correctly with JIT requested tokens (for long lived ApiClients) (#22233) 2026-01-22 18:44:38 +08:00
Erwin de Haan
3f9465edcb Support multi targetting (#22234) 2026-01-22 18:41:07 +08:00
Erwin de Haan
5cffc45428 C# GenericHost support multiple accept headers and allow access to HttpContentHeaders on response (#22232)
* Add support for other Accept header values or full arrays when multiple options are present.

* Expose ContentHeaders on ApiResponse, to access ContentDisposition for example with file downloads.

* Update samples and documentation

* Fix build warning in samples
2026-01-22 16:48:03 +08:00
William Cheng
6fc64e2115 add docstring to cpp-qt methods (#22770) 2026-01-22 16:46:13 +08:00
Martin Delille
a1c948df9f [cpp=qt] Add global server index setter for all operations (#22760) 2026-01-22 16:28:17 +08:00
William Cheng
0f23c4ff17 update java undertow to newer version (#22759) 2026-01-22 12:21:55 +08:00
Masanori ITOH
3be911d0e6 [Normalizer] add type information to an error message and fix #22743 (#22742) 2026-01-21 02:44:35 +08:00
dsteeley
c34d593d8f fix: Fix rust-server model generation following serde_valid upgrade (#22737) 2026-01-20 14:30:00 +08:00
Matt Pollock
9a0d711cf6 [R] optionally skip parsing responses to R6 objects (#22705)
* optionally skip parsing responses to R6 objects

* parse -> .parse

* scope .parse to endpoints that return data

* move handling of .parsed so that it applies to both primitive and non-primitive return types

* try, try, again
2026-01-20 12:44:39 +08:00
William Cheng
9adfe986a3 Prepare v7.20.0 release (#22738)
* Revert "v7.19.0 release (#22732)"

This reverts commit ff400e9a31.

* prepare v7.20.0 release

* update samples

* update doc
2026-01-20 03:13:58 +08:00
William Cheng
ff400e9a31 v7.19.0 release (#22732)
* v7.19.0 release

* update mill test
2026-01-19 18:06:38 +08:00
Xi Lu
24242be595 [Protobuf] Improve oneOf Handling by Unwrapping allOf for Complex Types (#22700)
* Improve Protobuf Generator's oneOf Handling allOf Unwrapping with Complex Types

* Address cubic-dev-ai comment
2026-01-19 17:00:31 +08:00
Daniel
502565b317 [java][jackson] fix: conditionally add jackson JsonIgnoreProperties for base class polymorphism fixes #12777 #22527 (#22528)
* fix: conditionally add jackson JsonIgnoreProperties for base class polymorphism

* fix: rename flag

* fix: rename flag

* fix: remove newline

* fix: regenerate example models

* fix: regenerate
2026-01-19 16:57:38 +08:00
Ilya Nemtsev
f355dc4c5c [Java][Native] Fix request compression (#22688)
* fix request compression

* fix edge case

* regenerated samples
2026-01-19 16:37:22 +08:00
William Cheng
73c9c1cbe5 update vertx to newer version in kotlin vertx server (#22731) 2026-01-19 15:09:24 +08:00
William Cheng
84692d8155 Revert "[kotlin] fix query parameter encoding (#22512)" (#22727)
This reverts commit a3d03bad09.
2026-01-19 12:44:04 +08:00
Matt Pollock
396c4c61eb [R] fix error handling in the R client (#22704)
* fix error handling in the R client

* adjust logic for avoiding logical vectors in a conditional statement
2026-01-18 13:16:33 +08:00
Matt Pollock
428d483f1e [R] fix set[object] deserialization (#22697)
* unpack dataframes within a list

* handle set/array

* update httr2 client
2026-01-18 12:56:17 +08:00
Matt Pollock
10d5aa7f56 [R] remove nuisance DUMMY_ENUM warning (#22692)
* drop nuisance warning

* update samples
2026-01-18 12:41:40 +08:00
Rens Groothuijsen
ae5848b215 fix(typescript-axios): Add missing import in case of separate models and API (#22712) 2026-01-17 15:54:08 +08:00
dsteeley
de464cea30 Refresh some dependencies in the Rust server generator (#22710) 2026-01-16 22:29:25 +08:00
Rens Groothuijsen
e0b27485db [typescript-axios] Handle sets as arrays in input parameters (#22642)
* [typescript-axios] Handle sets as arrays in input parameters

* Include docstring to explain purpose of replaceWithSerializableTypeIfNeeded function
2026-01-14 15:43:04 +08:00
William Cheng
b1b556ad63 [kotlin] Add integration test for query params (#22695)
* [kotlin] Add integration test for query params

This is a test for a regression from #22512 where param values
were written as a list.

* add test implementation for kotlin spring client

* add sha tests

---------

Co-authored-by: Piotr Kubowicz <piotr.kubowicz@gmail.com>
2026-01-14 15:34:53 +08:00
Roland Fredenhagen
4534e8d1a0 Resolve vendor extensions on schemas referenced in parameters. (#22690)
fixes #9138
2026-01-14 14:27:16 +08:00
Nicolas Rodriguez
a40dc56d38 [CRYSTAL] object_id method should be a reserved words (#22577)
* style(crystal): fix coding style

* fix(crystal): object_id is so central in Crystal that it should not be overridden by user code

See: https://crystal-lang.org/api/1.18.2/Reference.html#object_id%3AUInt64-instance-method

* style(crystal): fix coding style

* fix(crystal): fix partial_oneof_module by using a class instead of a module

Fix https://github.com/OpenAPITools/openapi-generator/issues/22563

* fix(crystal): remove non-working code

It's not working because it uses #send method which doesn't exist in Crystal

See: https://crystal-lang.org/reference/1.18/crystal_for_rubyists/metaprogramming_help.html#differences-between-ruby-and-crystal

* fix(crystal): update reserved words, separate reserved keywords from methods

* fix(crystal): update samples

* fix(crystal): set default values when options are not passed

* fix(crystal): follow up https://github.com/OpenAPITools/openapi-generator/pull/22545

* fix(crystal): remove travis.yml file

* style(crystal): fix coding style

* style(crystal): use kwargs when calling @api_client

* style(crystal): use kwargs when calling Crest::Request.new

* fix(crystal): remove useless return_type argument

* fix(crystal): map object type to JSON::Any type

* fix(crystal): reduce use of require

* fix(crystal): return early if value is nil

* fix(crystal): update doc

* fix(crystal): remove dead code

* fix(crystal): kemal is not used in specs

* fix(crystal): class name should be in PascalCase

Fix:
-  class EnumAttributeValidatorFor_type < EnumAttributeValidator
+  class EnumAttributeValidatorForType < EnumAttributeValidator

* fix(crystal): fix ameba warnings
2026-01-13 23:40:20 +08:00
William Cheng
848aecccda fix: [JAVA][SPRING] Nullaways warn with JSpecify => add missing annotation to parameter of method toIndentedString (#22685)
* fix: add annotation to method parameter

* fix: all impacted samples

---------

Co-authored-by: Philippe Kernevez <philippe@kernevez.net>
2026-01-13 12:56:31 +08:00
Devon
ae42568b26 [Rust] Enum Query Parameter Serialization Fixes (#22683)
* [Rust] Enum Query Parameter Serialization Fixes

Adds tests to ensure this won't regress again. Also fixes some other compile errors with Box<> and file uploads.

* Remove duplicate query param integration tests from petstore samples

* re-gen samples

* fix enum boxing tests

* stream files

* samples

* doc generator fix & snapshot

* doc generation fixes, update samples

* another attempt to fix the doc generator

* improve doc generation - don't try link to internal models, and fixing links missing in some scenarios

the rust doc generator will be the death of me

* also fix hyper

* applying same fix to hyper

* snapshot fixes
2026-01-13 11:18:56 +08:00
Lennard Sprong
58b12baed2 [Swift6] Remove QueryStringEncodable for models (#21150) 2026-01-12 21:42:20 +00:00
Jason Ak
eb65e93e1d Fix Swift oneOf discriminator decoding with enumUnknownDefaultCase (#22635) 2026-01-12 19:32:48 +00:00
Serge
08367def47 feat(typescript-angular): add angular 21 support (#22636) 2026-01-13 01:10:57 +08:00
William Cheng
450215c4b8 [BUG][JAVA][SPRING] api util must test variable nullity (#22679)
* fix: test if return type is null before using it

* chore: change sample example

---------

Co-authored-by: Philippe Kernevez <philippe@kernevez.net>
2026-01-12 16:41:08 +08:00
Devon
99baae676b [cpp] Fix Nested Map & Additional Properties Support (#22639)
* progress fixing nested map support in cpp generators

* [cpp] Fix Nested Map Support

* additional properties support

* fix potential np3

* cleanup javadoc

* inline

* explicit memory header
2026-01-12 15:54:21 +08:00
Julian Vennen
2b1f61874e [php][php-nextgen] Mark nullable things as nullable in phpdoc (#22650)
* [php][php-nextgen] Mark nullable things as nullable in phpdoc

* [php][php-nextgen] Use exts instead of vendorExtensions
2026-01-12 13:47:11 +08:00
Alec Petersen
17f2e4634c [REQ][CSHARP] Make TokenProvider abstract method GetAsync protected for override (#22615)
* Make GetAsync protected internal so external inheritors can override it

* Remove non-zero token length requirement to allow more flexibility for token providers

* Update samples
2026-01-12 13:46:03 +08:00
Mattias Sehlstedt
b3c4c49430 [Fix] [Regression] Resolve the discriminator type from a 3.1 sibling (#22634)
* Add support for resolving the discriminator type from a 3.1 sibling

* Set gradlew to be executable

* Generate sample FILES again
2026-01-12 13:44:55 +08:00
Devon
dff00c86d6 Fix nested map support (#22643)
Also includes a fix for enums :)
2026-01-12 13:42:16 +08:00
Eren
0da98b06f8 [kotlin-client] Fix enum @JsonCreator to throw for unknown values (#22663) 2026-01-12 13:34:50 +08:00
William Cheng
b2254b9b94 Normalize headers in components (#22672)
* normalize headers in components

* update comment
2026-01-12 12:26:17 +08:00
William Cheng
f1322a0c5a Better null check in normalizeSchema (#22671)
* uncomment exit

* better null check when normalizing schema
2026-01-11 22:01:44 +08:00
William Cheng
23dae2bcd8 Improve sample update with better exception handling (#22670)
* refactor java tests

* better exception handling when updating samples

* update samples to avoid using exception

* fix tests

* update

* update
2026-01-11 18:52:29 +08:00
William Cheng
944533826b update python fastapi urllib3 to newer version (#22644) 2026-01-09 12:49:38 +08:00
Neeme Praks
753330dd99 [kotlin-spring] Revert nested property placeholder in @RequestMapping that Spring cannot resolve (#22625) 2026-01-06 22:19:42 +08:00
William Cheng
d39e015487 Use defer file close in go client (#22596)
* use defer file close in go client

* update samples
2025-12-30 18:27:10 +08:00
William Cheng
cd01ba9bc1 Update go samples with more tests, improve code format (#22593)
* update go samples with more tests

* fix indention
2025-12-30 14:40:46 +08:00
Eric Huang
97af5d1f52 [go] fix default value for array type (#22584)
* Better handling array schema for `toDefaultValue`

Signed-off-by: titaneric <chenyihuang001@gmail.com>

* add string array and enum array to existing test case

Signed-off-by: titaneric <chenyihuang001@gmail.com>

---------

Signed-off-by: titaneric <chenyihuang001@gmail.com>
2025-12-30 14:08:24 +08:00
Xi Lu
873e27233b [Normalizer] Copy the title field when creating the ArraySchema object in processNormalize31Spec (#22592)
* Copy the title field when creating the ArraySchema object in processNormalize31Spec()

* Copy the title field when creating the ArraySchema object in processNormalize31Spec()
2025-12-30 14:00:12 +08:00
Linh Tran Tuan
80be730dcd [Rust-Axum] Adapt changes upon Host extractor sunset (#22585)
* [Rust-Axum] Adapt changes upon Host extractor sunset

* Update
2025-12-30 13:49:25 +08:00
William Cheng
23eff6672f Prepare v7.19.0 snapshot (#22569)
* Revert "7.18.0 release (#22567)"

This reverts commit 51228436e0.

* prepare 7.19.0 snapshot

* update samples

* update doc

* fix date
2025-12-22 19:25:23 +08:00
William Cheng
51228436e0 7.18.0 release (#22567) 2025-12-22 17:32:30 +08:00
devhl-labs
9779468cdc [csharp] Add .net10 support (#22562)
* added .net10

* delete samples

* delete samples

* build samples again

* build samples again again

* fix pr gate

* update pr gate names

* dont build solution with no project file

* move samples

* move samples
2025-12-22 16:09:33 +08:00