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
merge upstream #2
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
* fix handle_request_json spec res * fix client spec * make it possible to answer with 0 size binary for 204 * only generate empty bin for 204 * only generate empty bin for 204
…et() must use {{baseName}} instead of {{paramName}} on boolean and default query parameters (#9580)
* [python-fastapi] Ignore some flake8 warnings 1. Some of the "imported but not used" warnings are there because it is not easy to express what should be imported in mustache template language. These warnings are silenced in order to keep the templates morre readable. 2. Single quotes -> Double quotes (for consistency). Signed-off-by: Nikita Vakula <[email protected]> * [python-fastapi] Added flake8 config Signed-off-by: Nikita Vakula <[email protected]> * [python-fastapi] Set extra constraints on values It is important to set all constraints (pattern, greater than, etc.) on values of all arguments, because FastAPI can handle them automatically. Signed-off-by: Nikita Vakula <[email protected]> * [python-fastapi] Updated samples Signed-off-by: Nikita Vakula <[email protected]>
…#9453) * Allow to run ValidateTask tests against Gradle 7.0 as well * Drop setters for ValidateTask properties of mutable types This is applicable to the following properties: - inputSpec - recommend Otherwise, Gradle 7.0 now returns an error when attempting to configure this task. See https://docs.gradle.org/7.0/userguide/validation_problems.html#mutable_type_with_setter * Be more specific about the versions of Gradle tested in ValidateTaskDslTest Test against the latests Gradle 5.x and 6.x versions
`toModelImportMap` only accounts for union types and not intersection types, so I've combined those cases into `splitComposedType`. For `splitComposedType` I combined `replace(" ","").split("\\|")` and `split("( [|&] )|[<>]")` into `replace(" ","").split("[|&<>]")`. I've added the `needToImport` check to `toModelImportMap`. This is the same check that happens in `addImport`.
* [swift5] Add Vapor client library * Try to improve overall spacing (#17) * [swift5] try to remove changes in model and api * [swift5] update sample projects * [swift5] update sample projects * [swift5] update sample projects * [swift5] update sample projects * [swift5] update sample projects * [swift5] update sample projects * [swift5] update sample projects * [swift5] update sample projects * [swift5] update sample projects * [swift5] update sample projects * [swift5] update sample projects * Update samples * [swift5] vapor: return clientResponse when no default case * Update samples Co-authored-by: Bruno Coelho <[email protected]>
…9635) * [dart][dart-dio] Add support for query collection parameter format * add support for collectionFormat in query parameters and www-url-encoded content * add tests * remove empty query parameter maps from generated code * closes #6681 * closes #9522 * closes #8271 (the last remaining parts) * Fix formatting
* fix python fastapi tests, update readme, add CI test * update FILES * use virtualenv * fix pom.xml * skip flake8
* [python-fastapi] Apply constraints to models Signed-off-by: Nikita Vakula <[email protected]> * [python-fastapi] Use pydantic types to validate models fields Some data formats can be validated by annotating fields with some special pydantic data types (EmailStr, forr example). Signed-off-by: Nikita Vakula <[email protected]> * [python-fastapi] Updated samples Signed-off-by: Nikita Vakula <[email protected]>
* fix kotlin client issue in maven plugin tests * set version to v1.5.10 * update doc
…sage (#9665) AutoRefactor cleanup 'LogParametersRatherThanLogMessage' applied by erefactor: Replaces a string concatenation as parameter of a logger method by a string template followed by objects. For AutoRefactor see https://github.com/JnRouvignac/AutoRefactor For erefactor see https://github.com/cal101/erefactor
…sage (#9664) AutoRefactor cleanup 'LogParametersRatherThanLogMessage' applied by erefactor: Replaces a string concatenation as parameter of a logger method by a string template followed by objects. For AutoRefactor see https://github.com/JnRouvignac/AutoRefactor For erefactor see https://github.com/cal101/erefactor
…sage (#9133) AutoRefactor cleanup 'LogParametersRatherThanLogMessage' applied by erefactor: Replaces a string concatenation as parameter of a logger method by a string template followed by objects. For AutoRefactor see https://github.com/JnRouvignac/AutoRefactor For erefactor see https://github.com/cal101/erefactor
Model naming conforms to the property: modelPropertyNaming, however the parameter naming scheme is currently hardcoded to camelcase. Since the parameter names are closely tied to the model properties names, is maybe desirable to use a similar naming approach. The toParamName cannot directly use the paramPropertyNaming since that will cause issues with current generated code, since the modelPropertyNaming currently defaults to "original" A new property has been created to override this behavior, named "paramPropertyNaming", and its default is set to "camelcase".
devhl-labs
pushed a commit
that referenced
this pull request
Jan 29, 2022
…OpenAPITools#11315) * Fixing empty Content-Type in HTTP requests * Updating samples
devhl-labs
pushed a commit
that referenced
this pull request
Jul 9, 2022
…ppy warnings (OpenAPITools#12479) * feat(rust): support various Rust integer types (#2) * fix: Use ROOT locale * fix: unsigned int bounds were incorrect * fix: deal with potential null value
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
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*
.For Windows users, please run the script in Git BASH.
master
,5.1.x
,6.0.x