We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8f1a00 commit f853323Copy full SHA for f853323
1 file changed
packages/openapi-typescript/src/transform/schema-object.ts
@@ -485,6 +485,7 @@ function transformSchemaObjectCore(schemaObject: SchemaObject, options: Transfor
485
!options.path?.includes("parameters") &&
486
!options.path?.includes("requestBody") &&
487
!options.path?.includes("requestBodies")) // can’t be required, even with defaults
488
+ || !("nullable" in v) || ("nullable" in v && v.nullable === false)
489
? undefined
490
: QUESTION_TOKEN;
491
let type = $ref
0 commit comments