Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.

Idea: return the value in a KV pair more cleanly #10

@woodruffw

Description

@woodruffw

Filing so I don't forget.

Right now, when we query foo.bar.baz, yamlpath will return the entire key-value pair for baz.

For example:

foo:
  bar:
    baz: abc

will yield baz: abc instead of just abc. This is intentional, since we often want the key as well for context when presenting spans.

On the other hand, sometimes we only want the value (e.g. as a starting offset/anchor for finding some substring of interest).

Consequently, it might be nice to have an API/API option that allows us to configure whether or not we get the key-value or just the value (or just the key).

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