Skip to content
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

Refresh/11oct23: update from upstream #159

Merged
merged 293 commits into from
Oct 11, 2023
Merged

Refresh/11oct23: update from upstream #159

merged 293 commits into from
Oct 11, 2023

Conversation

vvb
Copy link

@vvb vvb commented Oct 11, 2023

PR checklist

  • Read the contribution guidelines.
  • Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community.
  • Run the following to build the project and update samples:
    ./mvnw clean package 
    ./bin/generate-samples.sh
    ./bin/utils/export_docs_generators.sh
    
    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*.
    For Windows users, please run the script in Git BASH.
  • In case you are adding a new generator, run the following additional script :
    ./bin/utils/ensure-up-to-date
    
    Commit all changed files.
  • File the PR against the correct branch: master (6.3.0) (minor release - breaking changes with fallbacks), 7.0.x (breaking changes without fallbacks)
  • If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.

wing328 and others added 30 commits August 10, 2023 10:42
…#16213)

* Add check for null JSON array in GSON Java api client

* Update samples
* fix data type in python client codegen

* add model mapping feature
…nkedHashMap being returned instead of maped object to POJO (OpenAPITools#16293)
* Add dart example

* Run `./bin/generate-samples.sh ./bin/configs/other/html2.yaml`
* Update servers.mustache

add hasOwnProperty checking; use const instead of var

* use 4 spaces instead of tabs
* fix replacing dollar sign

* try to add tests
add list import
add missing imports
import OpenAPI
fix import ?
fix import?
rename methods
test test fix
test python test fix
fix??
fix??

---------

Co-authored-by: Joshix-1 <[email protected]>
Co-authored-by: Joshix-1 <[email protected]>
* OpenAPITools#15131 Issue: Tempfile is not deleted

* delete tempfile in go client

---------

Co-authored-by: Aniruddh <[email protected]>
* feat(swift5): allow to swift build in linux

* chore(ci): add .github/workflows/samples-swift.yaml

* feat(swif5): bump Alamofire to 5.7.0

* chore(ci): run in macos all swift sample clients
* Fix Retrofit template with Jackson (Fix OpenAPITools#8147)

This commit amends the `ApiClient` template for Retrofit. It fixes a bug where the Retrofit client uses Jackson as the serialization library.

Until now, the `ApiClient` could not be compiled when using the Jackson library (default in SpringBoot applications), as the constructor of the class had the following parameter:

`private val serializerBuilder: Builder = Serializer.Builder,`

The change done in the commit, is to ensure that in case of Jackson, the right property of the `Serializer` class is assigned

* Add sample code for `kotlin-jvm-jackson`

This commit adds a sample code for the `kotlin-jvm-jackson` generated code to test the changes on CI

* Update kotlin code samples for CI

This commit only runs the command `bin/generate-samples.sh bin/configs/kotlin-*` to ensure that all code samples are up-to-date and CI can pass successfully.
* fixed operation nested return type

* more robust fix
… BluePlanet (OpenAPITools#16249)

* Remove trailing underscore in security_controller_.py and base_model_.py

* Regenerating sample files

* Clean-up files with trailing underscore in samples

* Update security extension to use the new security_controller

* Regenerate unmaintained samples
This commit adding SumUp into the list of companies that are using OpenAPI Generator.

Co-authored-by: Yonatan Karp-Rudin <[email protected]>
This commit only updates the sumup logo to the latest logo

Co-authored-by: Yonatan Karp-Rudin <[email protected]>
* fixed model property data type

* build samples
…nerator (OpenAPITools#16326)

* [Java][WebClient] support string list return type

* [Java][WebClient] add test

* [Java][WebClient] support string list return type

* [Java][WebClient] support string list return type

* fix webclient auto-generated test files

---------

Co-authored-by: Gavin.Wu <[email protected]>
…enAPITools#16327)

* [kotlin-multiplatform] add enum parameter support

* [kotlin-multiplatform] update generated samples
dabdirb and others added 28 commits October 5, 2023 11:11
… vendor extension x-spring-provide-args (OpenAPITools#16663)

* add vendor extenstion x-spring-provide-args

* add vendor extenstion x-spring-provide-args

* Revert "add vendor extenstion x-spring-provide-args"

This reverts commit 8a0cbc9.

* catch up latest main and re-generate samples

* remove un-used import

* add vendor extenstion x-spring-provide-args (OpenAPITools#16054,OpenAPITools#15088)

* update  X_SPRING_PROVIDE_ARGS for better description

---------

Co-authored-by: xiangxi.chen <[email protected]>
* added isTyphoeus property to remove negations on isFaraday

* adding httpx support as alternative library for ruby client

* updated samples
* bug fixes based on report

* fix
…ITools#16736)

Co-authored-by: Aanisha Mishra <[email protected]>
Co-authored-by: Vikrant Balyan (vvb) <[email protected]>
Co-authored-by: Vikrant Balyan <[email protected]>
Co-authored-by: Sebastien Rosset <[email protected]>
* minor fix to return type

* use returnProperty
* upgrade spring-boot-starter-parent

* upgrade springdoc and swagger-ui

* upgrade v3 swagger-annotations

* generate samples

* upgrade jackson

* fix spring cloud, remove temp comment

Putting "8" instead of "1.8" should be ok, because Spring Boot 3 requires Java 17 anyway, so it should be able to understand that 8 is the same as 1.8.

* generate samples

* upgrade JUnit 5, remove commons-io dependency, remove outdated samples/client/petstore/java/feign/feign10x/ files, generate samples

commons-io dependency was introduced in OpenAPITools#8484, but I don't see why it would be needed now or back then.

* update gson, generate samples

* update logback

* update feign

* update scribejava

* generate samples

* update httpmime

* okhttp-gson: update commons-lang & okhttp & junit-platform, remove mockito; generate samples

It seems Mockito is not used at all there.

* okhttp-gson: remove unnecessary sample files, generate sample files

* upgrade google-api-client & jersey-common, restore ClientTest, generate samples

* misc. upgrades in jersey2 and jersey3

jersey 3.1.3 is available already, but IntelliJ reports security problems in 3.1.3 and 3.1.2, so I used 3.1.1 instead.

* align some gradle&sbt files with poms, generate samples

* whitespace fix
* update ruby httpx petstore test

* fix pom

* comment out ruby httpx tests
* fix setup of body params (may be nil)

* fix httpx adapter issues

treating DNS resolution errors as ConnectionFailed; removing multipart header set by the openapi-generated code, as it does not contain boundary, and interferes with the generation from httpx, which appropriately deals with mime-types already
The current log statement prints "%s", updating to properly include the parameter
…nAPITools#16745)

* Avoid ClassCastException when getting headers (the header values are Collection<String> and not List<String>)
Delete unused classes

* Remove feign10x

* Add unit test
Refactor to avoid creating the headers map when ApiResponse is not used
* test: Tests for enum params in path, query and header

* fix: Get enum ref values correctly in path parameters

Closes OpenAPITools#16688

* fix java tests failure

---------

Co-authored-by: William Cheng <[email protected]>
It was often confusing to me why this method is even there.

Also using more line breaks and matching how black would format this.
…6779)

* test: Add two extra models for testing

* Fix unnamed dicts with additional properties

Closes OpenAPITools#16630
…6776)

* refactor: Use newlines in _with_http_info call

This prevents too-long lines and matches the style that
black would enforce.

* fix: Do not pydantic-validate function args twice

Closes OpenAPITools#15757
@vvb vvb merged commit ba3c13b into master Oct 11, 2023
50 checks passed
@vvb vvb deleted the refresh/11oct23 branch October 11, 2023 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.