Skip to content

Validation Errors in 0.5.0 #428

Closed
Closed
@mbleigh

Description

@mbleigh

I'm just posting this to see if anyone else has run into this...I tried to upgrade Divshot to Grape 0.5.0 and started immediately seeing unexpected 400 errors for "missing" required parameters that were present in the request. Here's what I've determined so far:

  1. It only occurs when posting a request body that needs to be parsed (in my case, json)
  2. It seems to be caused by the validator params request taking place before the Formatter middleware has had a chance to parse the request body.
  3. I haven't been able to create a spec that repros it.

Is anyone else experiencing this issue? I'm still investigating.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions