Class: ConvenientService::Service::Plugins::HasJSendResultParamsValidations::UsingDryValidation::Middleware

Inherits:
MethodChainMiddleware
  • Object
show all
Defined in:
lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_dry_validation/middleware.rb

Instance Method Summary collapse

Instance Method Details

#nextConvenientService::Service::Plugins::HasJSendResult::Entities::Result



18
19
20
21
22
# File 'lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_dry_validation/middleware.rb', line 18

def next(...)
  return result_from_dry_validation if dry_validation_errors.any?

  chain.next(...)
end