Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename diff result keys #531

Open
Shaun-3adesign opened this issue Mar 20, 2025 · 1 comment
Open

Rename diff result keys #531

Shaun-3adesign opened this issue Mar 20, 2025 · 1 comment

Comments

@Shaun-3adesign
Copy link

Shaun-3adesign commented Mar 20, 2025

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

@seperman
Copy link
Owner

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants