Skip to content

[BUG] nullable enum with integer values #543

Open
@h3llomoto

Description

@h3llomoto

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;

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions