-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Add support of Bearer Basic Authorization to Ruby client #2856
Conversation
modules/openapi-generator/src/main/resources/ruby-client/README.mustache
Outdated
Show resolved
Hide resolved
modules/openapi-generator/src/main/resources/ruby-client/configuration.mustache
Outdated
Show resolved
Hide resolved
All formatting issues are covered, but I am struggle to find a way to remove empty lines in generated files. |
modules/openapi-generator/src/main/resources/ruby-client/README.mustache
Outdated
Show resolved
Hide resolved
TravisCI is done, just not updating success here for some reason. |
@bopm thanks for the PR 👍 |
@wing328 looking forward to bring more if ever face same kind of problems. Thanks for all your work on this project! |
@bopm thanks again for your contribution, which has been included in the v4.0.1 release (https://twitter.com/oas_generator/status/1135534738658062336) |
@bopm Hey there, new to open api. I'd like to take advantage of this feature, but I can't seem to get the generator to produce a client that has the desired auth settings (bearer token). I'm using a version > v4.0.1. My open api spec is open api version 2.0 -- is this only available in 3.0? Not sure how to follow the documentation specified here: https://github.com/OpenAPITools/openapi-generator/blob/ccdd56da45cdd7439d6240d3c8018b2c7797d8ed/samples/openapi3/client/petstore/ruby/README.md#bearer_test |
JWT Bearer is only available in OAS v3.0 but not v2.0. |
PR checklist
./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.master
,. Default:3.4.x
,4.0.x
master
.Description of the PR
Add support of Bearer Basic Authorization to Ruby client.