Skip to content

Add ability to require certain param types #59

@vladfaust

Description

@vladfaust
  params do
    json require: true do
      type content : String
    end
  end

Would return 400 JSON payload required if content type is not "application/json" or the body is missing.

It is useful for applications which work with JSON requests only.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions