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.5.2 lib/dry/schema/macros/required.rb
dry-schema-1.5.1 lib/dry/schema/macros/required.rb
dry-schema-1.5.0 lib/dry/schema/macros/required.rb