Open
Description
One of the dependencies (json-stringify-safe
) throws an error when generating our schema. The error is:
Start generating files for custom schema: /project/json-schemas/schemas/schema.ts
/project/json-schemas/node_modules/json-stringify-safe/stringify.js:5
return JSON.stringify(obj, serializer(replacer, cycleReplacer), spaces)
^
RangeError: Invalid string length
at JSON.stringify (<anonymous>)
at stringify (/project/json-schemas/node_modules/json-stringify-safe/stringify.js:5:15)
at /project/json-schemas/node_modules/json-schema-to-typescript/dist/src/optimizer.js:34:204
at baseUniq (/project/json-schemas/node_modules/lodash/lodash.js:4338:35)
at Function.uniqBy (/project/json-schemas/node_modules/lodash/lodash.js:8482:40)
at optimize (/project/json-schemas/node_modules/json-schema-to-typescript/dist/src/optimizer.js:34:35)
at /project/json-schemas/node_modules/json-schema-to-typescript/dist/src/optimizer.js:18:86
at Array.map (<anonymous>)
at Object.optimize (/project/json-schemas/node_modules/json-schema-to-typescript/dist/src/optimizer.js:18:36)
at Object.<anonymous> (/project/json-schemas/node_modules/json-schema-to-typescript/dist/src/index.js:159:45)
Just reporting this here, before I dive deeper into the issue.
Metadata
Metadata
Assignees
Labels
No labels