Skip to content

Boolean type parameter not working #87

@ricardovsilva

Description

@ricardovsilva

If I try

patch '/:id' do |id|
    content_type :json
    param :foo, Boolean, required: true
  end

And try to do a patch passing as body:

{
  "foo": true
}

It raises 400 error. Am I doing anything wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions