Skip to content

Multiple expected payload types #2

@isitgeorge

Description

@isitgeorge

Basically I need to validate a payload where a JSON key may be either a string or a number. Is this possible?

example

var source = {
    "someStringOrNumber" : "0" // represent string or number
}

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