Skip to content

How to describe dynamic keys in response schema #1505

Closed
@satkunas

Description

@satkunas

How could the following response schema properties be described in YAML?

   "192.168.0.0/24": {
        "members": {
            "10:1f:74:b2:f6:a5": "192.168.0.2"
        }
}

Both the network address key 192.168.0.0/24 and each of the member key(s) 10:1f:74:b2:f6:a5 are dynamic and must follow a specific regular expression pattern. I've found documentation on how to define regular expression patterns for the value, but there's no details on how to define a pattern for the key.

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