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