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

Fix include_missing for aliased parameters #1752

Merged
merged 1 commit into from
Mar 15, 2018

Conversation

jonasoberschweiber
Copy link
Contributor

include_missing currently includes aliased parameters even if they're not specified. The existing test for include_missing was also broken, it passed regardless of the value of include_missing.

@jonasoberschweiber jonasoberschweiber force-pushed the alias-include-missing-fix branch from 24ef771 to 28b291b Compare March 15, 2018 09:28
CHANGELOG.md Outdated
@@ -10,6 +10,7 @@
* [#1737](https://github.com/ruby-grape/grape/pull/1737): Fix translating error when passing symbols as params in custom validations - [@mlzhuyi](https://github.com/mlzhuyi).
* [#1749](https://github.com/ruby-grape/grape/pull/1749): Allow rescue from non-`StandardError` exceptions - [@dm1try](https://github.com/dm1try).
* [#1750](https://github.com/ruby-grape/grape/pull/1750): Fix a circular dependency warning due to router being loaded by API - [@salasrod](https://github.com/salasrod).
* [#1752](https://github.com/ruby-grape/grape/pull/1752): Fix `include_missing` behavior for aliased parameters - [@jonasoberschweiber](https://github.com/jonasoberschweiber)
Copy link
Member

Choose a reason for hiding this comment

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

This is missing a period so it complains.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed, thanks.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@jonasoberschweiber jonasoberschweiber force-pushed the alias-include-missing-fix branch from 28b291b to 792417c Compare March 15, 2018 12:08
@dblock dblock merged commit 5613186 into ruby-grape:master Mar 15, 2018
@dblock
Copy link
Member

dblock commented Mar 15, 2018

Good work @jonasoberschweiber, thank you.

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.

None yet

2 participants