-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
[ruby] Improve ruby client examples #8040
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
Conversation
|
👍 Thanks for opening this issue! The team will review the labels and make any necessary changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| return "\"" + codegenProperty.example + "\""; | |
| return "'" + codegenProperty.example + "'"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| return "\"" + codegenProperty.name + "_example\""; | |
| return "'" + codegenProperty.name + "_example'"; |
|
Pushed 7e9f355 to update the samples so as to fix CircleCI build failure. Let's see how that goes. |
|
It seemed to do it, thanks 🙂 |
|
@zippolyte when you've time, I wonder if you can resolve the merge conflicts. I'll put other Ruby PRs on hold for the time being. Have a nice weekend. |
a6200f4 to
76e9d5b
Compare
|
@wing328 I rebased, but now I'm not too sure why circle ci is failing. |
76e9d5b to
109716d
Compare
|
Hey @wing328, can you have another look at this one ? Thanks 🙇 |
|
@zippolyte PR merged. Thanks for your contribution. |
Improve ruby client examples for models, by building models with required properties set.
Goal is to have examples a bit more copy/pastable directly
Adds
constructExampleCodemethods, similarly to a few other clients like go, or powershellPR checklist
./bin/generate-samples.shto update all Petstore samples related to your fix. 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