Skip to content

Convention for Arrays With a Single Item #7

@benjamin-kirkbride

Description

@benjamin-kirkbride

Currently, it's only possible to create an array by having multiple elements with the same name appear. This is problematic if you want a array that can have a single item.

I would propose a naming convention that ensures this.

For instance: name="foo.[bar]" or perhaps name="foo._bar_" would create the object {"foo": {"bar": []}}

I can make a PR for this, shouldn't be a huge lift at all. The purpose of this issue is mostly to see what your thoughts are.

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