Skip to content

Commit 3426762

Browse files
feat: support bigint (YousefED#596)
* Support bigint * Update typescript-json-schema.ts --------- Co-authored-by: Dominik Moritz <[email protected]>
1 parent 264ab45 commit 3426762

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

typescript-json-schema.ts

+4
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,10 @@ export class JsonSchemaGenerator {
705705
definition.type = "object";
706706
definition.properties = {};
707707
definition.additionalProperties = true;
708+
} else if (propertyTypeString === "bigint") {
709+
definition.type = "number";
710+
definition.properties = {};
711+
definition.additionalProperties = false;
708712
} else {
709713
const value = extractLiteralValue(propertyType);
710714
if (value !== undefined) {

0 commit comments

Comments
 (0)