Skip to content

Issue with serializing enum to schema #127

@felislynx-silae

Description

@felislynx-silae

Hi, i am trying to convert object to schema, where i'm using few enums. And sometimes the same enum is used in few places. I would love to have enum saved as separate object with references there, instead of multiple repetitions of field like this:

"theme" : {
"type" : "string",
"enum" : [ "LIGHT", "DARK" ]
},

Is there any way to achieve that?

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