-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
It would be nice if grape could reject a non-declared param. Something along the lines of:
params do
requires :first_name, type: String
reject_non_declared
endIf we specify age, it is rejected since because it has not been declared.
curl -d '{"first_name": "dave", "age": 32}' \
'http://localhost:9292/statuses' \
-H Content-Type:application/json \
-v
# => HTTP 400 Metadata
Metadata
Assignees
Labels
No labels