Skip to content

Can not generate default value for using enum in class #336

Description

@Saul-Mirone
enum Fruit {
  Apple = 'apple',
  Orange = 'orange'
}
class Test {
  fruit: Fruit = Fruit.Apple;
}

Then I get:

{
  fruit: {
    enum: ['apple', 'orange'],
    type: 'string',
  }
}

I expect the default can be set in here.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions