Class: Vident::Typed::TypedNilingStruct

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/vident/typed/typed_niling_struct.rb

Overview

A dry struct that is loose about keys provided on initialization. It sets them to nil if not provided. It is strict about types but not about provided keys

Class Method Summary collapse

Class Method Details

.check_schema_duplication(new_keys) ⇒ Object



21
22
23
# File 'lib/vident/typed/typed_niling_struct.rb', line 21

def check_schema_duplication(new_keys)
  # allow overriding keys
end