Skip to content

Rejects empty TOML tables #1924

Closed
Closed
@real-or-random

Description

Describe the bug

yq rejects perfectly legal empty TOML tables
Version of yq: v4.40.5

Input Toml

input.toml:

[emptyTable]

Command

yq -o=json '.' input.toml

Actual behavior

Error: bad file 'input.toml': error retrieving table [emptyTable] value: %!w(<nil>)

Expected behavior

Parsing works. https://toml.io/en/v1.0.0#table says: "Empty tables are allowed and simply have no key/value pairs within them."

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions