module Grape::DSL::Validations::ClassMethods
def reset_validations!
# whatever
post '/next' do
end
# params for the endpoint below this block
params do
# somewhere between them the reset_validations! method gets called
end
# whatever
post '/current' do
end
# params for the endpoint below this block
params do
settings, so next endpoint won't interfere with previous one.
Clears all defined parameters and validations. The main purpose of it is to clean up
def reset_validations! unset_namespace_stackable :declared_params unset_namespace_stackable :validations unset_namespace_stackable :params end