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 ContractScope validator + small tweaks #2510

Merged
merged 4 commits into from
Oct 28, 2024

Conversation

ericproulx
Copy link
Contributor

@ericproulx ericproulx commented Oct 27, 2024

I recently came across the ContactScope's validator. Like other validators, it should inherits from Grape::Validations::Validators::Base. This PR fix that and refactor a small part when building error messages

…::Base

initialize method has been updated accordingly
opts adds fail_fast
Use << when concatenating string
Use map instead of each []
@ericproulx ericproulx marked this pull request as ready for review October 27, 2024 17:53
@dblock dblock merged commit 0477baf into ruby-grape:master Oct 28, 2024
56 checks passed
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