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

Check for dry-types type existence and prevent unexpected top level const lookup #2272

Merged
merged 1 commit into from
Jul 23, 2022

Conversation

Vasfed
Copy link
Contributor

@Vasfed Vasfed commented Jul 22, 2022

This is a follow-up to #2271 - prevent silent validation fails for types not built-in in dry-types.
Instead of validation fail - check for [] method presence in provided class at init time.

@Vasfed Vasfed force-pushed the stricter_const_get branch 3 times, most recently from 2fa72ec to cd35a07 Compare July 22, 2022 09:10
@dblock
Copy link
Member

dblock commented Jul 22, 2022

Solid! fix Rubocop and it's good with me.

@Vasfed
Copy link
Contributor Author

Vasfed commented Jul 22, 2022

Solid! fix Rubocop and it's good with me.

Done

@dblock dblock merged commit 9bce86f into ruby-grape:master Jul 23, 2022
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