Skip to content

Empty mapping and empty sequence cannot be distinguished after load #55

@geert56

Description

@geert56

Using lyaml.load() any empty (flow) mappings and sequences cannot be distinguished in the returned Lua table.
Both will show up as an empty table. With minimum disruption this can be easily fixed by optionally (opts.distinct_sequence) allowing
load_sequence to return {{}} in case of #sequence == 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions