Skip to content

Is there a way to track property path using context? #289

@gyzerok

Description

@gyzerok

Hello there!

I need to be able to adjust encoding of certain values based on their value path. For example for { foo: 1, bar: { from: 300, baz: 'hello' }}. I would like for the from property to have custom encoding. One way I could do it is to have a list of paths such as '.bar.from' and then by looking at the current path inside encoding apply custom logic.

Is there a way to achieve this nicely? Can't quite figure it out myself. Thank you!

Metadata

Metadata

Assignees

No one assigned

    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