Skip to content

[BUG] nullable enum with integer values #543

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
h3llomoto opened this issue Jul 3, 2023 · 0 comments
Open

[BUG] nullable enum with integer values #543

h3llomoto opened this issue Jul 3, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@h3llomoto
Copy link

Hello, there is a problem while generating nullable enum with int values

prop:
  type: integer
  x-nullable: true
  enum:
    [ 0, 1, 2, 3, 4, 5 ]

generates to

prop?: "0" | "1" | "2" | "3" | "4" | "5" | null;

but without x-nullable: true generates to

prop?: 0 | 1 | 2 | 3 | 4 | 5;
@js2me js2me added the bug Something isn't working label Jul 12, 2023
@js2me js2me self-assigned this Jul 12, 2023
@js2me js2me mentioned this issue Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants