Sha256: 1531c4c2e2702c415e7dafd74c49b44d9f6ba770b9599a4a15fdaa05f29f19b2

Contents?: true

Size: 329 Bytes

Versions: 15

Compression:

Stored size: 329 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 private
      class Required < Key
        # @api private
        def operation
          :and
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
dry-schema-1.4.3 lib/dry/schema/macros/required.rb
dry-schema-1.4.2 lib/dry/schema/macros/required.rb
dry-schema-1.4.1 lib/dry/schema/macros/required.rb
dry-schema-1.4.0 lib/dry/schema/macros/required.rb
dry-schema-1.3.4 lib/dry/schema/macros/required.rb
dry-schema-1.3.3 lib/dry/schema/macros/required.rb
dry-schema-1.3.2 lib/dry/schema/macros/required.rb
dry-schema-1.3.1 lib/dry/schema/macros/required.rb
dry-schema-1.3.0 lib/dry/schema/macros/required.rb
dry-schema-1.2.0 lib/dry/schema/macros/required.rb
dry-schema-1.1.0 lib/dry/schema/macros/required.rb
dry-schema-1.0.3 lib/dry/schema/macros/required.rb
dry-schema-1.0.2 lib/dry/schema/macros/required.rb
dry-schema-1.0.1 lib/dry/schema/macros/required.rb
dry-schema-1.0.0 lib/dry/schema/macros/required.rb