镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Rename diff result keys #531

Open
Open

Description

@Shaun-3adesign

the output of a diff depending on the view look like the following

{'values_changed': [<root.status t1:"UP", t2:"DOWN">]}

{'values_changed': {'root.status': {'new_value': 'DOWN', 'old_value': 'UP'}}}

it would be great if it was possible to rename the keys for example

{'values_changed': [<root.status api:"UP", switch:"DOWN">]}

{'values_changed': {'root.status': {'switch': 'DOWN', 'api': 'UP'}}}

or better still have someway to I can create my own result

Activity

  1. seperman commented on Mar 27, 2025

    @seperman
    Member

    Hi @Shaun-3adesign
    Interesting idea. It should be easy to add parameters to rename t1 and t2 to anything you want.
    PRs are very welcome too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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