-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Parameters should be able to support these declaratively.
I'm thinking along these lines:
params do
requires :name, :string, only: ~w(john mary)
requires :profession, :string, except: ~w(student engineer)
requires :email, :string, matches: ~r/.+@.+/
endThe best place to introduce this is during the schema definition step.
Reactions are currently unavailable