-
-
Notifications
You must be signed in to change notification settings - Fork 567
Closed
Labels
PRs welcomePRs are welcome to solve this issue!PRs are welcome to solve this issue!
Description
In OpenAPI v3.1 nullable: true
was removed in favor of type arrays with the value "null"
. Reference: https://www.openapis.org/blog/2021/02/16/migrating-from-openapi-3-0-to-3-1-0
# OpenAPI v3.0
type: string
nullable: true
# OpenAPI v3.1
type:
- "string"
- "null"
The current version of openapi-typescript generates those properties as unknown
, instead of string | null
.
drwpow, pocka, alec-pirillo-le, clifff, andyl-ioki and 4 more
Metadata
Metadata
Assignees
Labels
PRs welcomePRs are welcome to solve this issue!PRs are welcome to solve this issue!