From fc339460e64086452e5919ca09bcb4611579398a Mon Sep 17 00:00:00 2001 From: Bradley Priest <167215+bradleypriest@users.noreply.github.com> Date: Fri, 5 Apr 2024 10:25:54 -0700 Subject: [PATCH] Support bigint --- typescript-json-schema.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/typescript-json-schema.ts b/typescript-json-schema.ts index 3e0a042..8ae8179 100644 --- a/typescript-json-schema.ts +++ b/typescript-json-schema.ts @@ -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) {