-
Notifications
You must be signed in to change notification settings - Fork 215
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
Parameters validation #109
Comments
I just open sourced metaractor which does required/optional parameters and some error control (valid/not valid). It does not do coercion or type checking. |
Im using https://github.com/jonstokes/troupe in all of my projects for a long time! |
This is what I did. It works fine. BTW I used this gem: https://github.com/nicolasblanco/rails_param |
To add to this, I've implemented schema validation for the Interactor::Context - you can see my gem here https://github.com/berfarah/interactor-schema |
Closing in favor of #123. |
Do you think it can be possible to add parameters validation to this library ?
context_param :user, presence: true, is_a: 'User
or even a simpler v1:
context_params :user, -> (context) {}
or using some library like rails_param ?
I'll be happy to make a PR for this :)
The text was updated successfully, but these errors were encountered: