Skip to content

Allow custom names to be supplied when creating an enum #385

@kerr23

Description

@kerr23

Howdy,

Having a heck of a time figuring out how to use enums as i'd like:

The examples show:
"myEnum" : {
"type" : "string",
"enum" : ["one", "secondOne", "3rd one"]
}

but what I really want is
myEnum = {
ONE (1),
TWO (2),
THREE (3)
}

Thanks

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions