Skip to content

Conversation

@zippolyte
Copy link
Contributor

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 constructExampleCode methods, similarly to a few other clients like go, or powershell

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.
  • If contributing template-only or documentation-only changes which will change sample output, build the project beforehand.
  • Run the shell script ./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.
  • File the PR against the correct branch: master
  • Copy the technical committee to review the pull request if your PR is targeting a particular programming language.

@auto-labeler
Copy link

auto-labeler bot commented Nov 27, 2020

👍 Thanks for opening this issue!
🏷 I have applied any labels matching special text in your issue.

The team will review the labels and make any necessary changes.

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return "\"" + codegenProperty.example + "\"";
return "'" + codegenProperty.example + "'";

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return "\"" + codegenProperty.name + "_example\"";
return "'" + codegenProperty.name + "_example'";

@zippolyte
Copy link
Contributor Author

I think this is ready for review, can you have a look @autopp @wing328 ? Thanks !

@wing328
Copy link
Member

wing328 commented Dec 2, 2020

Pushed 7e9f355 to update the samples so as to fix CircleCI build failure. Let's see how that goes.

@zippolyte
Copy link
Contributor Author

It seemed to do it, thanks 🙂

@wing328
Copy link
Member

wing328 commented Dec 4, 2020

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

@wing328
Copy link
Member

wing328 commented Dec 5, 2020

@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.

@zippolyte zippolyte force-pushed the hippo/ruby_ex branch 3 times, most recently from a6200f4 to 76e9d5b Compare December 7, 2020 08:17
@zippolyte
Copy link
Contributor Author

@wing328 I rebased, but now I'm not too sure why circle ci is failing.

@zippolyte
Copy link
Contributor Author

Hey @wing328, can you have another look at this one ? Thanks 🙇

@wing328 wing328 merged commit 81a5e44 into OpenAPITools:master Dec 15, 2020
@wing328
Copy link
Member

wing328 commented Dec 15, 2020

@zippolyte PR merged. Thanks for your contribution.

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.

3 participants