You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dkliban
changed the title
Adds 'params_encoder' config option for Ruby clients using Faraday[Ruby] Adds 'params_encoder' config option for Ruby clients using FaradayJun 24, 2021
dkliban added a commit
to dkliban/pulp-openapi-generator
that referenced
this pull request
Jun 24, 2021
dkliban
changed the title
[Ruby] Adds 'params_encoder' config option for Ruby clients using Faraday[Ruby] [Faraday] Adds 'params_encoder' config option for clientsJun 25, 2021
Your RubyGems version (3.0.8) has a bug that prevents `required_ruby_version` from working for Bundler. Any scripts that use `gem install bundler` will break as soon as Bundler drops support for your Ruby version. Please upgrade RubyGems to avoid future breakage and silence this warning by running `gem update --system 3.2.3`
..........................................................................FFFF**FFFFFFFFFF*.......................................................................................................................................................................
Pending: (Failures listed here are expected and do not affect your suite's status)
1) Pet pet methods should create and get pet with byte array (binary, string)
# Temporarily skipped with xit
# ./spec/custom/pet_spec.rb:91
2) Pet pet methods should get pet in object
# Temporarily skipped with xit
# ./spec/custom/pet_spec.rb:110
3) Store should fetch the inventory in object
# Temporarily skipped with xit
# ./spec/custom/store_spec.rb:30
Failures:
1) Pet pet methods should construct a new pet object
Got 0 failures and 2 other errors:
1.1) Failure/Error: request.options.params_encoding = @config.params_encoding if @config.params_encoding
NoMethodError:
undefined method `params_encoding' for #<Petstore::Configuration:0x0000000001536708>
Did you mean? params_encoder
params_encoder=
# ./lib/petstore/api_client.rb:132:in `build_request'
# ./lib/petstore/api_client.rb:72:in `block in call_api'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/connection.rb:513:in `block in run_request'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/connection.rb:530:in `block in build_request'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/request.rb:56:in `block in create'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/request.rb:55:in `tap'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/request.rb:55:in `create'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/connection.rb:526:in `build_request'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/connection.rb:508:in `run_request'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/connection.rb:281:in `post'
# ./lib/petstore/api_client.rb:71:in `public_send'
# ./lib/petstore/api_client.rb:71:in `call_api'
# ./lib/petstore/api/pet_api.rb:81:in `add_pet_with_http_info'
# ./lib/petstore/api/pet_api.rb:28:in `add_pet'
# ./spec/petstore_helper.rb:19:in `prepare_pet'
# ./spec/custom/pet_spec.rb:8:in `block (2 levels) in <top (required)>'
1.2) Failure/Error: fail ArgumentError, "Missing the required parameter 'pet_id' when calling PetApi.delete_pet"
ArgumentError:
Missing the required parameter 'pet_id' when calling PetApi.delete_pet
# ./lib/petstore/api/pet_api.rb:111:in `delete_pet_with_http_info'
# ./lib/petstore/api/pet_api.rb:95:in `delete_pet'
# ./spec/custom/pet_spec.rb:14:in `block (2 levels) in <top (required)>'
2) Pet pet methods should fetch a pet object
Got 0 failures and 2 other errors:
2.1) Failure/Error: request.options.params_encoding = @config.params_encoding if @config.params_encoding
NoMethodError:
undefined method `params_encoding' for #<Petstore::Configuration:0x0000000001536708>
Did you mean? params_encoder
params_encoder=
# ./lib/petstore/api_client.rb:132:in `build_request'
# ./lib/petstore/api_client.rb:72:in `block in call_api'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/connection.rb:513:in `block in run_request'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/connection.rb:530:in `block in build_request'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/request.rb:56:in `block in create'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/request.rb:55:in `tap'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/request.rb:55:in `create'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/connection.rb:526:in `build_request'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/connection.rb:508:in `run_request'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/connection.rb:281:in `post'
# ./lib/petstore/api_client.rb:71:in `public_send'
# ./lib/petstore/api_client.rb:71:in `call_api'
# ./lib/petstore/api/pet_api.rb:81:in `add_pet_with_http_info'
# ./lib/petstore/api/pet_api.rb:28:in `add_pet'
# ./spec/petstore_helper.rb:19:in `prepare_pet'
# ./spec/custom/pet_spec.rb:8:in `block (2 levels) in <top (required)>'
2.2) Failure/Error: fail ArgumentError, "Missing the required parameter 'pet_id' when calling PetApi.delete_pet"
ArgumentError:
Missing the required parameter 'pet_id' when calling PetApi.delete_pet
# ./lib/petstore/api/pet_api.rb:111:in `delete_pet_with_http_info'
# ./lib/petstore/api/pet_api.rb:95:in `delete_pet'
# ./spec/custom/pet_spec.rb:14:in `block (2 levels) in <top (required)>'
3) Pet pet methods should fetch a pet object with http info
Got 0 failures and 2 other errors:
3.1) Failure/Error: request.options.params_encoding = @config.params_encoding if @config.params_encoding
NoMethodError:
undefined method `params_encoding' for #<Petstore::Configuration:0x0000000001536708>
Did you mean? params_encoder
params_encoder=
# ./lib/petstore/api_client.rb:132:in `build_request'
# ./lib/petstore/api_client.rb:72:in `block in call_api'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/connection.rb:513:in `block in run_request'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/connection.rb:530:in `block in build_request'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/request.rb:56:in `block in create'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/request.rb:55:in `tap'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/request.rb:55:in `create'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/connection.rb:526:in `build_request'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/connection.rb:508:in `run_request'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/connection.rb:281:in `post'
# ./lib/petstore/api_client.rb:71:in `public_send'
# ./lib/petstore/api_client.rb:71:in `call_api'
# ./lib/petstore/api/pet_api.rb:81:in `add_pet_with_http_info'
# ./lib/petstore/api/pet_api.rb:28:in `add_pet'
# ./spec/petstore_helper.rb:19:in `prepare_pet'
# ./spec/custom/pet_spec.rb:8:in `block (2 levels) in <top (required)>'
3.2) Failure/Error: fail ArgumentError, "Missing the required parameter 'pet_id' when calling PetApi.delete_pet"
ArgumentError:
Missing the required parameter 'pet_id' when calling PetApi.delete_pet
# ./lib/petstore/api/pet_api.rb:111:in `delete_pet_with_http_info'
# ./lib/petstore/api/pet_api.rb:95:in `delete_pet'
# ./spec/custom/pet_spec.rb:14:in `block (2 levels) in <top (required)>'
4) Pet pet methods should not find a pet that does not exist
Got 0 failures and 2 other errors:
4.1) Failure/Error: request.options.params_encoding = @config.params_encoding if @config.params_encoding
NoMethodError:
undefined method `params_encoding' for #<Petstore::Configuration:0x0000000001536708>
Did you mean? params_encoder
params_encoder=
# ./lib/petstore/api_client.rb:132:in `build_request'
# ./lib/petstore/api_client.rb:72:in `block in call_api'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/connection.rb:513:in `block in run_request'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/connection.rb:530:in `block in build_request'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/request.rb:56:in `block in create'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/request.rb:55:in `tap'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/request.rb:55:in `create'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/connection.rb:526:in `build_request'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/connection.rb:508:in `run_request'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/connection.rb:281:in `post'
# ./lib/petstore/api_client.rb:71:in `public_send'
# ./lib/petstore/api_client.rb:71:in `call_api'
# ./lib/petstore/api/pet_api.rb:81:in `add_pet_with_http_info'
# ./lib/petstore/api/pet_api.rb:28:in `add_pet'
# ./spec/petstore_helper.rb:19:in `prepare_pet'
# ./spec/custom/pet_spec.rb:8:in `block (2 levels) in <top (required)>'
4.2) Failure/Error: fail ArgumentError, "Missing the required parameter 'pet_id' when calling PetApi.delete_pet"
ArgumentError:
Missing the required parameter 'pet_id' when calling PetApi.delete_pet
# ./lib/petstore/api/pet_api.rb:111:in `delete_pet_with_http_info'
# ./lib/petstore/api/pet_api.rb:95:in `delete_pet'
# ./spec/custom/pet_spec.rb:14:in `block (2 levels) in <top (required)>'
5) Pet pet methods should update a pet
Got 0 failures and 2 other errors:
5.1) Failure/Error: request.options.params_encoding = @config.params_encoding if @config.params_encoding
NoMethodError:
undefined method `params_encoding' for #<Petstore::Configuration:0x0000000001536708>
Did you mean? params_encoder
params_encoder=
# ./lib/petstore/api_client.rb:132:in `build_request'
# ./lib/petstore/api_client.rb:72:in `block in call_api'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/connection.rb:513:in `block in run_request'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/connection.rb:530:in `block in build_request'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/request.rb:56:in `block in create'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/request.rb:55:in `tap'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/request.rb:55:in `create'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/connection.rb:526:in `build_request'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/connection.rb:508:in `run_request'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/connection.rb:281:in `post'
# ./lib/petstore/api_client.rb:71:in `public_send'
# ./lib/petstore/api_client.rb:71:in `call_api'
# ./lib/petstore/api/pet_api.rb:81:in `add_pet_with_http_info'
# ./lib/petstore/api/pet_api.rb:28:in `add_pet'
# ./spec/petstore_helper.rb:19:in `prepare_pet'
# ./spec/custom/pet_spec.rb:8:in `block (2 levels) in <top (required)>'
5.2) Failure/Error: fail ArgumentError, "Missing the required parameter 'pet_id' when calling PetApi.delete_pet"
ArgumentError:
Missing the required parameter 'pet_id' when calling PetApi.delete_pet
# ./lib/petstore/api/pet_api.rb:111:in `delete_pet_with_http_info'
# ./lib/petstore/api/pet_api.rb:95:in `delete_pet'
# ./spec/custom/pet_spec.rb:14:in `block (2 levels) in <top (required)>'
6) Pet pet methods should find pets by status
Got 0 failures and 2 other errors:
6.1) Failure/Error: request.options.params_encoding = @config.params_encoding if @config.params_encoding
NoMethodError:
undefined method `params_encoding' for #<Petstore::Configuration:0x0000000001536708>
Did you mean? params_encoder
params_encoder=
# ./lib/petstore/api_client.rb:132:in `build_request'
# ./lib/petstore/api_client.rb:72:in `block in call_api'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/connection.rb:513:in `block in run_request'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/connection.rb:530:in `block in build_request'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/request.rb:56:in `block in create'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/request.rb:55:in `tap'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/request.rb:55:in `create'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/connection.rb:526:in `build_request'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/connection.rb:508:in `run_request'
# ./vendor/bundle/ruby/2.5.0/gems/faraday-1.10.0/lib/faraday/connection.rb:281:in `post'
# ./lib/petstore/api_client.rb:71:in `public_send'
# ./lib/petstore/api_client.rb:71:in `call_api'
# ./lib/petstore/api/pet_api.rb:81:in `add_pet_with_http_info'
# ./lib/petstore/api/pet_api.rb:28:in `add_pet'
# ./spec/petstore_helper.rb:19:in `prepare_pet'
# ./spec/custom/pet_spec.rb:8:in `block (2 levels) in <top (required)>'
6.2) Failure/Error: fail ArgumentError, "Missing the required parameter 'pet_id' when calling PetApi.delete_pet"
Argume
This file contains hidden or 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
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.
The partial templates were renamed because they no longer hold tls
settings exclusively.
fixes: #9838