Skip to content

Nullable not included in type definition #36

Closed
@bluenote10

Description

@bluenote10

According to this information it should be possible to define a nullable type in OpenAPI 3.0.x like this:

schemas:
  StringNullable:
    type: string
    nullable: true

However this generates the following TypeScript:

export type StringNullable = string;

I was hoping it would create:

export type StringNullable = string | null;

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions