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 master #36
Merged
Merged
merge master #36
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
…ime checks enabled (#11481) * date is only converted to javascript date with runtime checks enabled * fix test * fix test
* feat(typescript-rxjs): add support for rxjs 7.2.0, use type imports * feat(typescript-rxjs): regenerate samples * feat(typescript-rxjs): use generic T instead of any in BaseAPI * feat(typescript-rxjs): regenerate samples
* Adds component with composition in property example * Adds endpoint parameter examples * Adds request body examples * Adds inpline composition example in response body * Fixes UNKNOWNBASETYPE import bug * Updates allof inline schemas to be type object with minProperties * Removes newline * Adds test_ObjectWithInlineCompositionProperty * Updates inline schema to be type string, adds partial test_inline_composition * Fixes accept_content_types input value * Adds test_ObjectWithInlineCompositionProperty, adds test_inline_composition and starts deserialization of multipart * Fixes test_inline_composition, adds simple multipat/form-data deserialization
* fix type mapping * add missing primitive type Set * add testcase * generate new samples * update typescript generator document * regenerate samples and documents
…11517) * Adds bases for int32, int64, float32, and float64 * Samples updated * Removes print statements * When creating properties and items do not call _from_openapi_data or model __new__ * Update speed improvement * cast_to_allowed_types speeed improvements * _get_new_instance_without_conversion order swap for speed * Fixes test errors * Small fixes about path_to_schemas
…#11513) Add a leeway time to avoid a skew in the local clock
The currently generated code will throw a `ClassCastException` if `type` is `Object`. I'm not quite sure why `isAssignableFrom` is used here but I tried to keep the change minimal - in my understanding, the result would be the same if the line was ``` if(Types.getRawType(type).equals(ApiResponse.class)) { ``` because the `ApiResponse` only extends `Object` and implements no interfaces. Maybe it was meant to be `ApiResponse.class.isAssignableFrom(Types.getRawType(type))`? This would also permit subclasses of `ApiResponse`, but then it would be more complicated to determine the actual type parameter (because `type` itself may not be parameterized) and to create the object to return (because it would have to be an instance of the subclass).
fix a error in the template
* added generichost samples * build samples * added guid * build samples
* removed all nancyfx references * didnt save one file * removed two more nancyfx files
…ing change: Method is public so upstream consumer *may* of used it, but library does not. (#11453)
* replace okhttp-gson with okhttp-gson-nextgen * add new files * update doc * clean up pom * update test * restore error handling in doc * add back changes * uncomment tests * update samples
* test .net 6 in github workflow * trigger workflow * fix run * fix test * trigger build * update samples
Remove CIRCE_VERSION from generator because it is taken in as a transitive dependency of ` "com.softwaremill.sttp.client3" %% "json4s" % "3.3.18"` Co-authored-by: boris <[email protected]>
…11547) * remove java8 from java client generator and templates * update tests * remove threetenbp * update spring templates to remove java8 * remove java8 from jaxrs template * fix jaxrs spec * fix feign * remove CustomInstantDeserializer.java * fix jersey1 * fix undertow * various update * fix jaxrs jersey1 * fix java inflector * fix jaxrs cxf * add new files * update doc
* remove tabs from java templates * replaces tabs with spaces in java templates
…go code (#11641) Originally, this dummy declaration was needed because there was the possibility of the generated code doesn't use `context.Context` and then if it imported that package, go compiler complains that and makes an error. ref: https://github.com/OpenAPITools/openapi-generator/blob/3ed1aa8e79687bed63dfa064de27317273080471/modules/swagger-codegen/src/main/resources/go/api.mustache#L30 However, now this dummy placement is no longer needed because the generated code always uses `context.Context`. Signed-off-by: moznion <[email protected]>
* fix: python regex validation generation * docs: updated comment to be more specific * fix: check the right value used when generating the regex
* Aspnetcore V6 Support * docs: update-docs
* add tests for aspnet core 6 * bug fix, update samples
Latest version of logback https://logback.qos.ch/news.html
* update parser to 2.0.29 * better handling of null in dereferencing * update parser to 2.0.30 * update core to newer version * add new files * rollback to previous stable version * remove files * Fixes for python-experimental NullableShape component Co-authored-by: Justin Black <[email protected]>
A CodegenModel's hasEnum property is set in addVars: cm.hasEnums = true; This state was cleared afterwards again. As one of its results the import for @JsonValue was not added for the model class in the Spring code generator, where 'model.hasEnums' was evaluated to false where it should be true.
Co-authored-by: Gustavo De Micheli <[email protected]>
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.3.0),6.0.x