extend PR 20293#1
Merged
timon-sbr merged 106 commits intotimon-sbr:issue-20188-java-fix-inner-enum-templatefrom Jan 30, 2025
Merged
extend PR 20293#1timon-sbr merged 106 commits intotimon-sbr:issue-20188-java-fix-inner-enum-templatefrom
timon-sbr merged 106 commits intotimon-sbr:issue-20188-java-fix-inner-enum-templatefrom
Conversation
* [C] Deal with binary api parameters With this change, the bodyParameters array can also be binary, so pass its length around instead of relying on strlen(). * [C] Fix a few remaining enum issues * [C] Install headers and include any_type.h header * [C] Don't require C++ to compile C code * [C] Test binary bodies and path enums in schemas * Update samples --------- Co-authored-by: Sam Bingner <sam@corellium.com>
…penAPITools#20322) In the build.gradle template for the Java generator's resttemplate library, change dependency to com.fasterxml.jackson.jakarta.rs:jackson-jakarta-rs-json-provider instead of com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider when useJarkartaEe is enabled. This makes it consistent with the pom template file.
* add tests for path parameter in rust client * add tests and update samples
* [C] Default to requiring valid SSL * Update samples --------- Co-authored-by: Sam Bingner <sam@corellium.com>
Signed-off-by: Tim Quinn <tim.quinn@oracle.com>
…#20245) * [Kotlin Server] Update Ktor to version 3 * [Kotlin Server] Clean up * [Kotlin Server] Fix problems * [Kotlin Server] Fix Ktor and modelMutable samples * [Kotlin Server] Fix the string value for serialization key * [Kotlin Server] Remove setting Kotlin serialization flag to true * [Kotlin Server] Remove setting Kotlin serialization flag to true * [Kotlin Server] Remove the option to enable Kotlin serialization * [Kotlin Server] Use query parameters
* fix isKtor, update samples * fi dockerfile * fix dataclass * add new files * fix template * regenerate samples
…ingleRequestParameter to Spring WebClient (OpenAPITools#19827) * chore (JAVA SPRING WEBCLIENT): Remove comments used for debugging * feat (JAVA SPRING WEBCLIENT): Add support for useSingleRequestParameter to Spring WebClient * feat (JAVA SPRING WEBCLIENT): Generate samples and docs * fix (JAVA SPRING WEBCLIENT): Fix missing return error & Fix JDK17 action webclient useSingleRequestParameter test path * fix (JAVA SPRING WEBCLIENT): Fix code indention * fix (JAVA SPRING WEBCLIENT): Fix code indention again * fix (JAVA SPRING WEBCLIENT): Update samples * feat (JAVA SPRING WEBCLIENT): Regenerate after pull rebase
* replace removed forkMode * remove junit runner where it's not needed * update samples without skipping test files, but skip files named "FILES" * revert overwriting custom tests, add custom java tests to list * add one sample to CircleCI, fix various Java tests
…nit__ (OpenAPITools#20292) aiohttp's `ClientSession` & `TCPConnector` used to obtain an event loop in __init__ (via `asyncio.get_event_loop`). However, as of aio-libs/aiohttp#8512 both classes now obtain the running event loop and won't potentially create one. This makes it impossible to create `ClientSession` and `TCPConnector` objects outside of coroutines, as `get_running_loop` must be called from a coroutine. Thus we defer the creation of a `ClientSession` into the actual request and cache it for later usage. Thereby we pay only a very small price on the first request, but subsequent requests will not be any more expensive.
…penAPITools#5536) (OpenAPITools#18991) * [php] Set $multipart to true if content-type is multipart/form-data (OpenAPITools#5536) Related: OpenAPITools#5536 * [php] Use isMultipart variable --------- Co-authored-by: Simon Hammes <simonhammes@users.noreply.github.com>
* [Java][Client] (OpenAPITools#13968) * update * update * update slack url --------- Co-authored-by: András Gábor Kis <andras-gabor.kis@telekom.com>
…ls#20333) * Fixed rust keywords in reqwest-trait lib * Update tests and samples
* feat(issue-20231): add echo_api client for kotlin okhttp * build(issue-20231): sync files
…ools#20067) * [typescript-axios] Add User-Agent Header to Default Axios * fix if `npmVersion` doesn't exist * generate samples * single line solution * move user agent header to config * generate samples * splat for headers as well * samples * move headers above baseOptions * samples * commas are hard * samples again
* add pip install to readme * add a few links to blogs
* Added code and tests for generating the gradle wrapper for kotlin-spring * Added generated samples * Changed Gradle wrapper version to 8.1.1 * Added generated samples * update samples --------- Co-authored-by: William Cheng <wing328hk@gmail.com>
…7113) (OpenAPITools#20335) * [PHP][php-nextgen] List all possible return types (fix OpenAPITools#17113) * Switch to LinkedHashSet
* Fix OpenAPITools#20354 - Nullable mixed type is not allowed * Add parameter types for request and asyncWithHttpInfo functions
* update logback to newer version * update java inflector samples * update logback to newer version * fix auto-generated tests
* [C] Fail build on implicit function declarations * [C] Complete changes from patch 34c3f8c * Update samples * [C] Fail build for global functions with no declaration * [C] Use "static" for apiClient.c internal functions * Update samples
* add restsharp net9 samples * add httpclient net9 samples * add unity net9 samples * update workflow * comment out unity test
…APITools#20401) * Added useCentralPackageVersionManagement option for aspnetcore * Removed debug code from template * Added option to opt out of centralized version management * Added sample for centralized version management * Removed changes for .net9 * Updated template file for model project * Code formatting * Corrected sample config for aspnetcore * Regenerated Samples * update samples, docs * Fixed models project mustache file * Regenerated samples and docs * Regenerated smaples and doc * Changed options to enum WIP * fix option * [ASPNETCORE] Add support for central package version management OpenAPITools#20192 (OpenAPITools#20403) * Fixed default value for usePackageVersions * Regenerated docs * update workflow * add props file --------- Co-authored-by: Urganot <ballingsimon@googlemail.com>
… clients (OpenAPITools#20466) * Address [rawtypes] and [this-escape] warnings in generated API clients * Commit updated sample files
* Revert "v7.11.0 release (OpenAPITools#20508)" This reverts commit a7240ee. * prepare 7.12.0 snapshot version * update samples * update readme
* Fix enum discriminator default value * Remove system out call * Add case when discriminator type is ref * Use correct schema * Handle different use cases of mappings * Add missing enum type Lizzy * Make it more robust * Add missing test for Sedan * Refactor some code to make it cleaner * Initialize discriminator enum field * Don't override existing default value * Fix issue with finding discriminators * Move setIsEnum back to its original location * Be smarter about figuring out the model name * Fix final warnings * Add javadocs to introduced methods
…penAPITools#20497) * move validator import into GoClientCodegen * add new example for oneof discriminator lookup * regenerate samples * add validator.v2 to go.mod if it is imported * regenerate samples
* [php-nextgen] Explicitly declare nullable parameters explicitly * Fix some deprecation warnings in other php generators * [php-nextgen] Fix PHP 8.4 deprecation warnings with nullable/optional array parameters
- Fix enum default value generation. Default values were falling back to the default code generator and were being generated improperly for Julia. - Add more validations to client and server API call handlers. These validations were already being generated for models, but were missed out for API calls.
* add ClickIT as bronze sponsor * update url
* fixed json serializer * build samples
5 tasks
Owner
|
Thank you very much @martin-mfg I will merge your changes |
c24c95c
into
timon-sbr:issue-20188-java-fix-inner-enum-template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi @timon-sbr, please see OpenAPITools#20293 (review) for an explanation.