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

Dyff doesn't preserve the string type for quoted integers #384

Open
ramasai1 opened this issue Aug 2, 2024 · 0 comments
Open

Dyff doesn't preserve the string type for quoted integers #384

ramasai1 opened this issue Aug 2, 2024 · 0 comments

Comments

@ramasai1
Copy link

ramasai1 commented Aug 2, 2024

I have two YAML files here:

---
kindTwo:
  bool: "true"
  value: "20"

and

---
kindOne:
  bool: "false"
  value: "10"

Running dyff between dyffone.yaml dyfftwo.yaml returns:

$ dyff between dyffone.yaml dyfftwo.yaml
     _        __  __
   _| |_   _ / _|/ _|  between dyffone.yaml
 / _' | | | | |_| |_       and dyfftwo.yaml
| (_| | |_| |  _|  _|
 \__,_|\__, |_| |_|   returned one difference
        |___/

(root level)
- one map entry removed:   + one map entry added:
  kindOne:                   kindTwo:
  │ bool: "false"            │ bool: "true"
  │ value: 10                │ value: 20

The integers 10 and 20 are unquoted even though they are quoted in the original YAML. The tool should report the output with the type preserved without implicitly removing the quotes.

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

1 participant