kislyuk / yq

Command-line YAML, XML, TOML processor - jq wrapper for YAML/XML/TOML documents
https://kislyuk.github.io/yq/
Apache License 2.0
2.53k stars 81 forks source link

[bug] Version 3.3.0 breaks float parsing #187

Closed cwrau closed 3 months ago

cwrau commented 3 months ago

The following yaml:

test: 0.0004

Results in the following json with yq 3.2.3:

{
  "a": 0.0004
}

and the following with yq 3.3.0:

{
  "a": "0.0004"
}

See the added quotes, meaning the floating number is now a string

kislyuk commented 3 months ago

Thanks for reporting. Fix released in v3.3.1.

cwrau commented 3 months ago

Thanks for reporting. Fix released in v3.3.1.

Amazing! Thanks for the quick fix!