Skip to content

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