Skip to content

Feature Request: Enums #19

Description

@stevebell117

Hello,

I am using your library and I really like it! However, I have noticed if you have the following property:

"session": {
            "type": "string",
            "enum": [
            "NORMAL",
            "AM",
            "PM",
            "SEAMLESS"
            ]
        }

Then it doesn't generate something like:

class Session(Enum):
   Normal = "NORMAL"
   ...

Would this be possible to implement, as it's part of the JSON Schema format?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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