Skip to content
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

combined global models with endpoint entities #128

Merged

Conversation

dspaeth-faber
Copy link
Contributor

Global models override entities defined with an endpoint. I think it's preferable to combine these models.

@@ -11,6 +11,7 @@
* Added Rubocop, Ruby-style linter - [@dblock](https://github.com/dblock).
* [#126](https://github.com/tim-vandecasteele/grape-swagger/pull/126): Rewritten demo in the `test` folder with CORS enabled - [@dblock](https://github.com/dblock).
* [#127](https://github.com/tim-vandecasteele/grape-swagger/pull/127): Fixed `undefined method 'reject' for nil:NilClass` error for an invalid route, now returning 404 Not Found - [@dblock](https://github.com/dblock).
* Combine global models and endpoint entities
Copy link
Member

Choose a reason for hiding this comment

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

Amend with the format above please, PR + your name. Thx.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did, hope it's better now. But this workflow has it's disadvantages. I have first to create a PR before I can change the CHANGELOG.md. Is there a better way?

Copy link
Member

Choose a reason for hiding this comment

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

I personally don't know of a better way, but I am open to suggestions.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is some thing like this available for ruby?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, but I found these changelogs painful as the maintainers constantly complain to people to squash commits and make the descriptions really readable, transferring the burden from editable 1-liners to crazy policing of linux-kernel-like descriptions. I don't want to have to yell at people like Linus :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

github-changes can use the PR name instead of the commit messages. Maybe it's a try worth. With the actual way you have to yell at people to add the PR into the changelog ;)

dblock added a commit that referenced this pull request Jul 24, 2014
…_enities

combined global models with endpoint entities
@dblock dblock merged commit 40f7c31 into ruby-grape:master Jul 24, 2014
@dspaeth-faber
Copy link
Contributor Author

Thanks!

@dspaeth-faber dspaeth-faber deleted the combine_global_models_with_enities branch July 24, 2014 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants