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
Describe the bug
TOML table arrays dropped when defined before parent object properties. In otherwords, if you take the test case from toml_test.go and re-order the sections such the the "owner" section is after the "owner.addresses" sections the "addresses" field is dropped/deleted.
Version of yq: v4.40.5
Operating system: alpine linux
Installed via: binary
Input Toml
data1.toml:
[[owner.addresses]]
street = "first street"suburb = "ok"
[[owner.addresses]]
street = "second street"suburb = "nice"
[owner]
name = "Tom Preston-Werner"age = 36
Additional context
The go-toml library seems to handle this as expected (see https://go.dev/play/p/D04-xTgNjx9 ), so I suspect there might be something in decoder_toml.go
The text was updated successfully, but these errors were encountered:
Describe the bug
TOML table arrays dropped when defined before parent object properties. In otherwords, if you take the test case from toml_test.go and re-order the sections such the the "owner" section is after the "owner.addresses" sections the "addresses" field is dropped/deleted.
Version of yq: v4.40.5
Operating system: alpine linux
Installed via: binary
Input Toml
data1.toml:
Command
The command you ran:
Actual behavior
Expected behavior
Additional context
The go-toml library seems to handle this as expected (see https://go.dev/play/p/D04-xTgNjx9 ), so I suspect there might be something in
decoder_toml.go
The text was updated successfully, but these errors were encountered: