You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a test file (test.yaml) with the following content:
a: abc
b: cba
Change the value of "a" to the string "23695230e640":
yq -i -y '.a="23695230e640"' test.yaml
Observe that the value is correctly changed in the file:
» cat test.yaml
a: 23695230e640
b: cba
Make another change to a field other than "a":
yq -i -y '.b="abc"' test.yaml
Observe the file again, and notice how the field "a" got treated as a number in this case:
» cat test.yaml
a: 1.7976931348623157e+308
b: abc
This breaks some processes. The value of "a" should not change if only the value of "b" is changed, and "a" should be consistently treated either as a number, or as a string.
The text was updated successfully, but these errors were encountered:
Reproduction:
This breaks some processes. The value of "a" should not change if only the value of "b" is changed, and "a" should be consistently treated either as a number, or as a string.
The text was updated successfully, but these errors were encountered: