Sha256: 447631a3de74c9a3ed48f15ef68929b6646d8fd8ebbbee882d5628904715cabb

Contents?: true

Size: 328 Bytes

Versions: 5

Compression:

Stored size: 328 Bytes

Contents

# frozen_string_literal: true

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

5 entries across 5 versions & 1 rubygems

Version Path
dry-schema-0.6.0 lib/dry/schema/macros/required.rb
dry-schema-0.5.1 lib/dry/schema/macros/required.rb
dry-schema-0.5.0 lib/dry/schema/macros/required.rb
dry-schema-0.4.0 lib/dry/schema/macros/required.rb
dry-schema-0.3.0 lib/dry/schema/macros/required.rb