Skip to content

Suggestion: catchAll for extra data #33

@J-Chris-Findlay-RESIDEO

Description

I've seen parsers that allow a catch-all field to be created (in this case of type JSON_Value or Table(string, JSON_Value)) where unknown fields get put. That might be a nifty feature to have here too as it allows for gradual extension more easily.

E.g.

Thing :: struct {
    id: int;
    name: string;
    anythingElse: Table(string, JSON_Value);  @JsonRest
};

Open to suggestions on if the catch-all field should be @noted or matched by convention or whatever.

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