-
Notifications
You must be signed in to change notification settings - Fork 0
Description
path_first, path_all, hash key [:some_key] access and direct property access have differing semantics, e.g. direct property access seems to raise an exception if a property isn't available in the JSON vs. path_first which will just return nil.
We want to allow the use of type signatures in a separate Gem to effectively annotate the dynamically created types with expected properties, so may be able to introspect at run-time, or else create some abstract classes in order to determine whether direct property access using the respond_to_missing? and method_missing functions.
Direct property access seems to not be used much in RP, but we should look at other project(s) that use this library to see whether they just use path_first and path_all.
Extra points for using dry-monads.