Skip to content

Multiple value entries #18

@MrMMorris

Description

@MrMMorris

Sorry to bug you again, thanks for the quick response last time!

I was wondering if it's possible to have multiple values such as for up/down? The easiest I guess would be to have them as an array? but they are strings.

Json:
"down": "ip r d 172.22.0.0/16 via 10.1.0.1 dev eth0",
"down": "ip r d 10.19.0.0/16 via 10.1.0.2 dev eth0"

Gives me only the first value.

"down": ["ip r d 172.22.0.0/16 via 10.1.0.1 dev eth0", "ip r d 10.19.0.0/16 via 10.1.0.2 dev eth0"]

Gives me "Option down must be a kind of String! You passed ["ip r d 172.22.0.0/16 via 10.1.0.1 dev eth0", "ip r d 10.19.0.0/16 via 10.1.0.2 dev eth0"]."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions