Skip to content

Commit c5fcb62

Browse files
committed
fix: custom openapi-typescript generator questionToken usage
1 parent 0b8a7b2 commit c5fcb62

File tree

1 file changed

+2
-1
lines changed
  • packages/openapi-typescript/src

1 file changed

+2
-1
lines changed

packages/openapi-typescript/src/bin.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ program
6464
ts.factory.createIdentifier('Blob'),
6565
undefined
6666
),
67-
questionToken: true, // todo::make PR to openapi-typescript to add `schemaObject` to `transform` third argument, to get `required` properties
67+
// questionToken will be inferred by `openapiTS`, if true, it will force `?` for parameter
68+
questionToken: false,
6869
};
6970
}
7071
},

0 commit comments

Comments
 (0)