Method: Dry::Types::Hash#weak

Defined in:
lib/dry/types/hash.rb

#weakObject Also known as: permissive, strict, strict_with_defaults, symbolized

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



50
51
52
53
# File 'lib/dry/types/hash.rb', line 50

def weak(*)
  raise "Support for old hash schemas was removed, please refer to the CHANGELOG " \
        "on how to proceed with the new API https://github.com/dry-rb/dry-types/blob/main/CHANGELOG.md"
end