homeport/dyff

Dyff doesn't preserve the string type for quoted integers

Opened this issue · 0 comments

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.