Skip to content

Commit

Permalink
Support bigint
Browse files Browse the repository at this point in the history
  • Loading branch information
bradleypriest authored Apr 5, 2024
1 parent 264ab45 commit fc33946
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions typescript-json-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,10 @@ export class JsonSchemaGenerator {
definition.type = "object";
definition.properties = {};
definition.additionalProperties = true;
} else if (propertyTypeString === "bigint") {
definition.type = "number";
definition.properties = {};
definition.additionalProperties = false;
} else {
const value = extractLiteralValue(propertyType);
if (value !== undefined) {
Expand Down

0 comments on commit fc33946

Please sign in to comment.