Skip to content

Use partial for Ruby HTTP libraries#3539

Merged
wing328 merged 4 commits intomasterfrom
faraday_template
Aug 2, 2019
Merged

Use partial for Ruby HTTP libraries#3539
wing328 merged 4 commits intomasterfrom
faraday_template

Conversation

@wing328
Copy link
Copy Markdown
Member

@wing328 wing328 commented Aug 2, 2019

PR checklist

  • Read the contribution guidelines.
  • Ran the shell script under ./bin/ to update Petstore sample so that CIs can verify the change. (For instance, only need to run ./bin/{LANG}-petstore.sh, ./bin/openapi3/{LANG}-petstore.sh if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in .\bin\windows\. If contributing template-only or documentation-only changes which will change sample output, be sure to build the project first.
  • Filed the PR against the correct branch: master, 4.1.x, 5.0.x. Default: master.
  • Copied the technical committee to review the pull request if your PR is targeting a particular programming language.

Description of the PR

  • bug fix: isFaraday
  • use mustache partial for configuration.mustache

cc @cliffano (2017/07) @zlx (2017/09) @autopp (2019/02)

@wing328
Copy link
Copy Markdown
Member Author

wing328 commented Aug 2, 2019

@dkliban please have a look when you've time.

@wing328 wing328 added this to the 4.1.0 milestone Aug 2, 2019
@wing328
Copy link
Copy Markdown
Member Author

wing328 commented Aug 2, 2019

Local tests (Ruby Faraday) look good:

Finished in 25.58 seconds (files took 17.09 seconds to load)
277 examples, 0 failures, 3 pending

@ssl_client_key = nil
{{/isFaraday}}
{{^isFaraday}}
@verify_ssl = true
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should only include the TLS settings for Typhoeus when not isFaraday.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevemind. I misread.

Copy link
Copy Markdown
Contributor

@dkliban dkliban left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I generated a client based on Faraday library and tested that it works correctly. I also read through the client code and it looked as expected.

@wing328 wing328 merged commit d45e306 into master Aug 2, 2019
@wing328 wing328 deleted the faraday_template branch August 2, 2019 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants