Skip to content

Spike: property access #70

@ajtucker

Description

@ajtucker

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.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions