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.
1.3 KiB
1.3 KiB