Sha256: 59d50178f98b6fe3cc4cdcefecf21c322566b77029a117100cd9c169843feace
Contents?: true
Size: 720 Bytes
Versions: 203
Compression:
Stored size: 720 Bytes
Contents
# frozen_string_literal: true module Aws module Plugins # @api private class ParamValidator < Seahorse::Client::Plugin option(:validate_params, default: true, doc_type: 'Boolean', docstring: <<-DOCS) When `true`, request parameters are validated before sending the request. DOCS def add_handlers(handlers, config) if config.validate_params handlers.add(Handler, step: :validate, priority: 50) end end class Handler < Seahorse::Client::Handler def call(context) Aws::ParamValidator.validate!(context.operation.input, context.params) @handler.call(context) end end end end end
Version data entries
203 entries across 203 versions & 1 rubygems