Files
ubicloud/spec/routes/api/auth_spec.rb
Jeremy Evans 1790011a4d Handle JSON request bodies that are arrays or invalid JSON
Wrap arrays using the wrap: :unless_hash option.  Use the
:error_handler option to raise an InvalidRequestBody::Error
if the body is invalid JSON.  This will result in correct 400
errors instead of 500 errors.
2024-11-22 09:44:54 -08:00

1.3 KiB