Skip to content

Blank validator error message is wrong #933

@pekopekopekopayo

Description

@pekopekopekopayo
class HomeController < ApplicationController
  skip_before_action :verify_authenticity_token
  api!
  param :test_hash, Hash
  def create
    render status: :ok, json: { message: 'Hello, World!' }
  end
end

this is my test code

i expect this message
Apipie::ParamInvalid (Invalid parameter 'test_hash' value blank: Must be a Hash):
but error message was wrong
Apipie::ParamInvalid (Invalid parameter 'test_hash' value nil: Must be a Hash):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions