Sha256: 21a1e07259fd1a97139ce674d5df79f7bfc53febbdeda0887c12338f2a55f0d9

Contents?: true

Size: 329 Bytes

Versions: 23

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

23 entries across 23 versions & 1 rubygems

Version Path
dry-schema-1.10.6 lib/dry/schema/macros/required.rb
dry-schema-1.10.5 lib/dry/schema/macros/required.rb
dry-schema-1.10.4 lib/dry/schema/macros/required.rb
dry-schema-1.10.3 lib/dry/schema/macros/required.rb
dry-schema-1.10.2 lib/dry/schema/macros/required.rb
dry-schema-1.10.1 lib/dry/schema/macros/required.rb
dry-schema-1.9.3 lib/dry/schema/macros/required.rb
dry-schema-1.9.2 lib/dry/schema/macros/required.rb
dry-schema-1.9.1 lib/dry/schema/macros/required.rb
dry-schema-1.9.0 lib/dry/schema/macros/required.rb
dry-schema-1.8.0 lib/dry/schema/macros/required.rb
dry-schema-1.7.1 lib/dry/schema/macros/required.rb
dry-schema-1.7.0 lib/dry/schema/macros/required.rb
dry-schema-1.6.2 lib/dry/schema/macros/required.rb
dry-schema-1.6.1 lib/dry/schema/macros/required.rb
dry-schema-1.6.0 lib/dry/schema/macros/required.rb
dry-schema-1.5.6 lib/dry/schema/macros/required.rb
dry-schema-1.5.5 lib/dry/schema/macros/required.rb
dry-schema-1.5.4 lib/dry/schema/macros/required.rb
dry-schema-1.5.3 lib/dry/schema/macros/required.rb