Closed tjheeta closed 9 years ago
For example, using the following params:
params do requires :type, type: Atom, values: [:record] group :data, type: Map do requires :name, type: String, regexp: ~r"^[a-zA-Z0-9\-\.]+$" requires :type, type: String, regexp: ~r"^[a-zA-Z0-9]+$" end end
Submitting this:
{data: %{name: "www", type: "a"}, type: "record"}
Will result with the following parameters:
%{data: %{name: "www", type: "record"}, type: :record}
The expected result is:
%{data: %{name: "www", type: "a"}, type: :record}
Thank you. I guess the reason of the problem is the param :type, I'll fix this as soon as possible.
:type
For example, using the following params:
Submitting this:
Will result with the following parameters:
The expected result is: