Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blank validator error message is wrong #933

Open
pekopekopekopayo opened this issue Jun 4, 2024 · 1 comment
Open

Blank validator error message is wrong #933

pekopekopekopayo opened this issue Jun 4, 2024 · 1 comment

Comments

@pekopekopekopayo
Copy link
Contributor

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):

@pekopekopekopayo
Copy link
Contributor Author

@ekohl I opened the PR again by my mistake ㅠ_ㅠ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant