I want to create a route for the Grape gem so that a route accepts either an array of strings or a single string with a specific pre-defined value. From the documentation it's not clear how to do that.
Your suggestions?
UPDATE:
I want status
to be passed either a single value status1
or as a array where values can be arbitrary and unknown. I combine these?
params do
requires :status, type: Symbol, values: [:status1]
requires :status, type: Array[String]
end