Sha256: 89a526735cac80407badea5d36b98f49d141dd8a52c742363d7400b12246195d

Contents?: true

Size: 297 Bytes

Versions: 3

Compression:

Stored size: 297 Bytes

Contents

require 'dry/schema/macros/key'

module Dry
  module Schema
    module Macros
      # A Key specialization used for keys that must be present
      #
      # @api public
      class Required < Key
        # @api private
        def operation
          :and
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dry-schema-0.2.0 lib/dry/schema/macros/required.rb
dry-schema-0.1.1 lib/dry/schema/macros/required.rb
dry-schema-0.1.0 lib/dry/schema/macros/required.rb