Sha256: f481241434f6fc399ac007f4ae73157dd0a3116e0d021f3dbc6685b6d1e25d06

Contents?: true

Size: 353 Bytes

Versions: 23

Compression:

Stored size: 353 Bytes

Contents

# frozen_string_literal: true

module Praxis
  class ValidationHandler
    # Should return the Response to send back
    def handle!(summary:, errors: nil, exception: nil, **opts)
      opts.delete(:request)
      opts.delete(:stage)
      Responses::ValidationError.new(summary: summary, errors: errors, exception: exception, **opts)
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
praxis-2.0.0 lib/praxis/validation_handler.rb
praxis-2.0.pre.40 lib/praxis/validation_handler.rb
praxis-2.0.pre.39 lib/praxis/validation_handler.rb
praxis-2.0.pre.38 lib/praxis/validation_handler.rb
praxis-2.0.pre.37 lib/praxis/validation_handler.rb
praxis-2.0.pre.36 lib/praxis/validation_handler.rb
praxis-2.0.pre.35 lib/praxis/validation_handler.rb
praxis-2.0.pre.34 lib/praxis/validation_handler.rb
praxis-2.0.pre.33 lib/praxis/validation_handler.rb
praxis-2.0.pre.32 lib/praxis/validation_handler.rb
praxis-2.0.pre.31 lib/praxis/validation_handler.rb
praxis-2.0.pre.30 lib/praxis/validation_handler.rb
praxis-2.0.pre.29 lib/praxis/validation_handler.rb
praxis-2.0.pre.28 lib/praxis/validation_handler.rb
praxis-2.0.pre.27 lib/praxis/validation_handler.rb
praxis-2.0.pre.26 lib/praxis/validation_handler.rb
praxis-2.0.pre.25 lib/praxis/validation_handler.rb
praxis-2.0.pre.24 lib/praxis/validation_handler.rb
praxis-2.0.pre.23 lib/praxis/validation_handler.rb
praxis-2.0.pre.22 lib/praxis/validation_handler.rb