forked from OpenAPITools/openapi-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update from original #1
Merged
Merged
Conversation
This file contains 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
* update inline model resolver flatten responses * minor update * minor update * minor update * minor update
The api.mustache template only uses the reflect package if there is a query parameter which `isCollectionFormatMulti`. The import for the reflect package is however added if _any_ parameter is `isCollectionFormatMulti`. If the parameter which `isCollectionFormatMulti` e.g. is in the body instead of the query, this leads to the import being part of the generated code but not used and the code does not compile. This updates reworks the import handling for the `reflect` package so that it is only added if there is a query parameter which `isCollectionFormatMulti`. Co-authored-by: Per Hallgren <[email protected]>
* Added Rust Reqwest trait based client * Fixed Cargo imports for reqwest trait template * Added support for mockall to Rust reqwest trait library * Added MockApiClient when mockall and topLevelClient are enabled * Added missing flags to Rust generator documentation * feat: add support for single argument and bon builder Adds support for single argument and bon building for the new reqwest-trait generator * Rebuilt rust samples --------- Co-authored-by: Troy Benson <[email protected]>
…2 and jersey3 (#19966) * Add type annotation to raw type Iterable in jersey templates * Regenerate samples
* fix: csharp mustash fully qualify namespace Path The generated code of Csharp get a fully quallify namespace for PATH using Path = global::System.IO.Path; * mend * Remove alias for fully qualify Path class
* [swift6] improve retry interceptor * [swift6] improve retry interceptor * [swift6] improve retry interceptor
…, instead of deprecated npm lib 'querystring' (#19949)
* set option to true by default, update samples * update doc
…19985) * python-pydantic-v1: Keep trailing commas for tuples when enum has just single member * Update samples * Add test for single member enums * Refactor test name
Bumps [s4u/setup-maven-action](https://github.com/s4u/setup-maven-action) from 1.15.0 to 1.16.0. - [Release notes](https://github.com/s4u/setup-maven-action/releases) - [Commits](s4u/setup-maven-action@v1.15.0...v1.16.0) --- updated-dependencies: - dependency-name: s4u/setup-maven-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* [julia] improve enum support Improved enum support. Added an override for `postProcessModels` method in julia code generator to do enum post processing. Added an override for `toEnumValue` method in julia code generator to generate enum values correctly based on julia types. Updated templates to use `#enumVars` for generating enum values. * generated samples
* [Rust-Axum] Support Cookie Authentication & API Key In Header * Fix * Fix * Fix Header Params & Responses
* Scala-cask improvements: * fixe for grouped methods which have routes containing dashes. Previously our OperationGroup work-around would potentially Create methods like ‘foo-bar’, which isn’t a valid function name * Fix to not import some.package.Array[Byte] when binary format is specified * Fix for grouped operations which contain duplicate query parameters * Fix for binary response fields. This can come up with the following example "responses" : { "200" : { "content" : { "application/json" : { "schema" : { "format" : "binary", "type" : "string" } } }, "description" : "data" }, * Fix for enum model classes Extracted complex logic for ‘asData’ and ‘asModel’ transformations for properties * Introduced a generic effect F[_] for services This was done to support composable services (Service A calls Service B) by using monadic Effect types (ones which can flatMap) * Fixed unique union types for responses, asModel and asData fixes for non-model types * scala-cask: regenerated samples * Fix for reserved-word properties in the API * Fix for null imports and reserved-word enum types * Fixes for api methods with backticked params * Fix for duplicate (by name) grouped params * small syntax fix * logging response type * Regenerated samples * String.format fix
* comment out broken tests * refactored copy lambda * added tests
) * fixed missing output * bug fix * add new sample * build samples again * delete sample * move the sample and add to github workflow * remove model not needed for this test * handle specs with no models * better handling of duplicate operation ids * fixed mistake in resolving conflicts * build samples again * revert a change sent in another pr
* python: strong typing for the configuration module * 3.8 compatibility * fix bearer format * Specific auth settings
…al Error (#20047) * [Rust-Axum] Fix: prevent Operation returns Internal Server Error * Update
* Add of a first working generator for FastEndpoints framework Generator that support the basics of a FastEndpoints project https://fast-endpoints.com/ * Add respose code documentation support * Add an option to enable use of problem details * Clean enum and model * Add an option to generate record for requests/models * Update sample * Add support of nullable types * Add option to enable authentication * Add option to generate validators * Clean readme.md file * Add option to enable response caching * update readme template * Add missing files references * Update generated sample * Add link to documentation * Add generator documentation * correctly support packageName supportingFiles additions moved to processOpts() * improve useAuthentication option handling Avoid to copy an empty file * processOpts, move call to parent at the end * Update generated sample * Refactor and fix super.processOpts(); call order * Handle the case of multi-line description * Rename field to match naming conventions * Add useApiVersioning option * Update generated sample * Add generator documentation * Fix record when model contains optional properties * Add configuration files for each option * Add sample project for each configuration * Add GitHub Action workflow for sample projects * Add FastEndpoints BindFrom attribute on path, query and form params * Update sample generated projects * Fix validator template * fix alphabetical order * Use fully qualified name for FastEndpoints * Add options to set GUID to be used in sln file * update sample projects * Update generators.md * Fix path in github workflow * Put readme, gitignore and solution file at the root of generated project * update sample projects * Remove the projectGuid option This Guid need to be constant, it is related to project type * update sample projects
Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet) from 4.0.1 to 4.1.0. - [Release notes](https://github.com/actions/setup-dotnet/releases) - [Commits](actions/setup-dotnet@v4.0.1...v4.1.0) --- updated-dependencies: - dependency-name: actions/setup-dotnet dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* add test for primitive request/response * add new files
* update spec 3.1 support message * update faq
* add restsharp net9 samples * add httpclient net9 samples * add unity net9 samples * update workflow * comment out unity test
* 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 #20192 (#20403) * Fixed default value for usePackageVersions * Regenerated docs * update workflow * add props file --------- Co-authored-by: Urganot <[email protected]>
… clients (#20466) * Address [rawtypes] and [this-escape] warnings in generated API clients * Commit updated sample files
* 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
…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
…e functions (#20222) * feat: add options to service functions * fix: fix type error * refactor: change options parameter * chore: update samples * fix: fix options use order * refactor: rename options * refactor: import type
Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet) from 4.2.0 to 4.3.0. - [Release notes](https://github.com/actions/setup-dotnet/releases) - [Commits](actions/setup-dotnet@v4.2.0...v4.3.0) --- updated-dependencies: - dependency-name: actions/setup-dotnet dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
The change in #20067 has caused some issues with clients which run in a Browser. This commit replaces that change, leaving the default User-Agent for axios unmodified, and only sets the User-Agent if the `http-user-agent` parameter is provided during generation time.
…or multipart/form-data requests (#20598)
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.
PR checklist
Commit all changed files.
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*
.IMPORTANT: Do NOT purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
master
(upcoming 7.6.0 minor release - breaking changes with fallbacks),8.0.x
(breaking changes without fallbacks)