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 in master #1
Merged
Merged
+176,596
−95,775
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
…4554) * java native form data generator * merge master; add test * change test * store body echo response * review fixes
* add access token * remove disabled_client_side_validations * remove discard_unknown_keys * update samples * fix array/map default value * add krjakbrjak to python tc
* Remove dead code * Refactor containsKey before get * Minor refactor * Use JsonMapper.builder() to build ObjectMapper Fix a bug where ALLOW_COERCION_OF_SCALARS wasn't set properly. * Update samples * Oops, fix a typo
* [Go] properly set header parameters on api clients * update samples * update samples --------- Co-authored-by: Paul Sokolik <[email protected]>
* fix enum ref issue in array default value (java) * update samples * update tests * update samples
* fixed the issue * added comment
* Rename isNil to IsNil * Regenerate files
* [Kotlin-Spring] Support multiline descriptions This commit adds support for multiline descriptions for operations in the Kotlin-Spring generator, for both regular API generation (i.e. Controller), as well as interface-only API generation. Multiline descriptions allow us to use rich text representations, e.g. with Markdown. Note that Markdown-formatted descriptions are rendered nicely in Swagger-UI. I imagine that most openapi consumers will be able (or will want to) support Markdown (at some point). The solution for Kotlin-Spring is rather simple, using Raw Strings to contain the `unescapedNotes`. See: https://kotlinlang.org/docs/strings.html#raw-strings Note that specific unescaped strings could cause problems. For example, the string containing three double quotes `"""` would result in compile errors for the generated code. I think this is acceptable. Note that an improvement is possible to use `.trimMargin()` in combination with the pipe symbol `|`, to allow specific margin prefixing. Note that the description is used in escaped form in the JavaDoc. This could be resolved by prefixing every line of the unescapedNotes with a star `*`. For now, I've chosen to implement this the simplest way I could think off. Signed-off-by: Nico Korthout <[email protected]> * [Kotlin-Spring] Update samples Signed-off-by: Nico Korthout <[email protected]> --------- Signed-off-by: Nico Korthout <[email protected]>
Looks like a large, sweeping change trimmed off a few backticks. Without them the rest of this readme is rubbish.
…n case of timeout (#13862) * Changed to TimeoutException * Handle timeout exceptions as inner exceptions. * Corrected arguments for compatibility
Co-authored-by: Bach <[email protected]>
* add tests for uuid with pattern in csharp clients * update samples * update samples * update
* add spotless plugin to java native client * apply spotless * Revert "apply spotless" This reverts commit 485d50b.
* Nullify serverIndex in java ApiClient.setBasePath Restores previous behavior broken between v6.2.1 and v6.3.0 * Regenerate samples
Co-authored-by: Ran Tao <[email protected]>
* Remove alphabetical sort * Update integration testing expectations * Regenerate files
… apache (#14670) * JAVA-NATIVE conditionally depend on apache * add hasFormParamsInSpec in abstract java codegen * use hasFormParamsInSpec instead * minor fix --------- Co-authored-by: Sergey Prytkov <[email protected]>
* Apache Camel: fix implicit headers * ./mvnw clean package ./bin/generate-samples.sh ./bin/utils/export_docs_generators.sh * Q * Created samples/openapi3/client/3_0_3_unit_test/python/test/.gitempty * update samples --------- Co-authored-by: Giacomo Carnevale <[email protected]>
* add allowStringInDateTimeParameters option * add tests * add files * add tests for datetime query parameters * fix file anme * trigger build * fix pytest * install test requirement * trigger build * break build * add new files * fix Locale.ROOT * update doc
* Add 'endsWith' handlebars helper function * add tests * fix test
* Added useSettingsGradle property in kotlin-client. * kotlin docs update. - add kotlinx_serialization in serializationLibrary.
…15007) * add option skip generating getter for sub-schemas * fix openapi-yaml * update samples * update samples
* fix optional dict in property * update samples
* integers parameters in URL did not work as expected * so now, if the parameter is an integer, we convert it to binary before passing to `hackney_url:make_url/3`
…14984) * fix #13150 Do not add schema / class name mapping where custom mapping exists * update test spec * improve import * fix import for mapped models * fix python * code clean up * fix dart client import * fix dart:core import * better import * add tests --------- Co-authored-by: Bernie Schelberg <[email protected]>
* Refactor: ModelUtils: Harmonize isIntegerSchema with isStringSchema Make code isIntegerSchema look similar to isStringSchema and remove if-clause in favor to bool-OR '||'. * Refactor: ModelUtils: Simplify isMapSchema Factor out if sequence and use "return A || B || C;" scheme instead. * Refactor: ModelUtils: Simplify isUnsignedIntegerSchema Factor out 'if (x) {return true;} else {return false;}' and use 'return x;' instead. * Refactor: ModelUtils: Simplify isUnsignedLongSchema Factor out 'if (x) {return true;} else {return false;}' and use 'return x;' instead. * Refactor: ModelUtils: Simplify isTypeObjectSchema Factor out 'if (x) {return true;} return false;' and use 'return x;' instead. * Refactor: ModelUtils: Simplify isComposedSchema Factor out 'if (x) {return true;} return false;' and use 'return x;' instead. * Refactor: ModelUtils: Simplify isBooleanSchema Factor out 'if (x) {return true;} return y;' and use 'return x || y;' instead. * Refactor: ModelUtils: Simplify isNumberSchema Factor out 'if (x) {return true;} return y;' and use 'return x || y;' instead. * Refactor: ModelUtils: Simplify isDateSchema Factor out 'if (x) {return true;} return y;' and use 'return x || y;' instead. * Refactor: ModelUtils: Simplify isDateTimeSchema Factor out 'if (x) {return true;} return y;' and use 'return x || y;' instead. * Refactor: ModelUtils: Simplify isPasswordSchema Factor out 'if (x) {return true;} return y;' and use 'return x || y;' instead. * Refactor: ModelUtils: Simplify isByteArraySchema Factor out 'if (x) {return true;} return y;' and use 'return x || y;' instead. * Refactor: ModelUtils: Simplify isBinarySchema Factor out 'if (x) {return true;} return y;' and use 'return x || y;' instead. * Refactor: ModelUtils: Simplify isFileSchema Factor out 'if (x) {return true;} return y;' and use 'return x || y;' instead. * Refactor: ModelUtils: Simplify isUUIDSchema Factor out 'if (x) {return true;} return y;' and use 'return x || y;' instead. * Refactor: ModelUtils: Simplify isEmailSchema Factor out 'if (x) {return true;} return y;' and use 'return x || y;' instead. * Refactor: ModelUtils: Simplify isObjectSchema Factor out 'if (x) {return true;} if (y) {return true;} return z;' and use 'return x || y || z;' instead. * Refactor: ModelUtils: Simplify isModel Factor out 'if (x) {return false;} if (y) {return true;} return z;' and use 'return !x && (y || z);' instead. * Refactor: ModelUtils: Simplify isModelWithPropertiesOnly Factor out 'if (x) {return false;} if (y) {return true;} return false;' and use 'return !x && y;' instead. * Refactor: ModelUtils: Simplify getApiResponse Factor out 'if (x) {return null;} if (y) {return z;} return null;' and use 'if (!x && y) {return z;} return null;' instead. * Refactor: ModelUtils: Simplify getParameter Factor out 'if (x) {return null;} if (y) {return z;} return null;' and use 'if (!x && y) {return z;} return null;' instead. * Refactor: ModelUtils: Simplify getCallback Factor out 'if (x) {return null;} if (y) {return z;} return null;' and use 'if (!x && y) {return z;} return null;' instead. * Refactor: ModelUtils: Simplify getHeader Factor out 'if (x) {return null;} if (y) {return z;} return null;' and use 'if (!x && y) {return z;} return null;' instead. * Refactor: ModelUtils: Simplify isExtensionParent Factor out 'if (x) {return false;} else {y}' and use 'if (x) {return false;} y' instead. * Refactor: ModelUtils: Simplify isComplexComposedSchema Factor out 'if (x) {return true;} return false;' and use 'return x;' instead.
…15039) * add new rule REFACTOR_ALLOF_WITH_PROPERTIES_ONLY * update other attributes * minor refactoring
* fix allOf handling in fromProperty * add null check, update samples * update dart generator to handle allof with a single ref
* Added ability to configure the AuthorizationFilter pattern * Added configuration for the Client annotation * Generated samples * Remove extra newline from template * Updated samples * Declarative client annotation path attribute only supported when id attribute is set * Cleaned up style of generated file --------- Co-authored-by: Shane Perry <[email protected]>
* fix pattern with double quote * fix test
* fix ciruclar reference import in python nextgen * update samples
* fix binary response in python nextgen client * update samples
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.
merges in changes from OpenAPITools:master into fork mmews-n4:language-n4js