You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! 👋
When trying to run npx openapicmd typegen, I receive the following error:
npx openapicmd typegen <path>
Error: Debug Failure. False expression: Negative numbers should be created in combination with createPrefixUnaryExpression
at Object.createNumericLiteral (~/.npm/_npx/fb2ea8e0e5441457/node_modules/typescript/lib/typescript.js:21094:13)
at Object.buildNumericLiteralTypeNode (~/.npm/_npx/fb2ea8e0e5441457/node_modules/@anttiviljami/dtsgenerator/dist/core/astBuilder.js:56:56)
at DtsGenerator.generateLiteralTypeNode (~/.npm/_npx/fb2ea8e0e5441457/node_modules/@anttiviljami/dtsgenerator/dist/core/dtsGenerator.js:312:28)
at ~/.npm/_npx/fb2ea8e0e5441457/node_modules/@anttiviljami/dtsgenerator/dist/core/dtsGenerator.js:279:29
at Array.map (<anonymous>)
at Object.buildUnionTypeNode (~/.npm/_npx/fb2ea8e0e5441457/node_modules/@anttiviljami/dtsgenerator/dist/core/astBuilder.js:124:55)
at DtsGenerator.generateLiteralTypeProperty (~/.npm/_npx/fb2ea8e0e5441457/node_modules/@anttiviljami/dtsgenerator/dist/core/dtsGenerator.js:278:24)
at DtsGenerator.generateTypeProperty (~/.npm/_npx/fb2ea8e0e5441457/node_modules/@anttiviljami/dtsgenerator/dist/core/dtsGenerator.js:273:21)
at DtsGenerator.generateProperties (~/.npm/_npx/fb2ea8e0e5441457/node_modules/@anttiviljami/dtsgenerator/dist/core/dtsGenerator.js:244:84)
at DtsGenerator.generateTypeName (~/.npm/_npx/fb2ea8e0e5441457/node_modules/@anttiviljami/dtsgenerator/dist/core/dtsGenerator.js:449:35)
This seems to happen because the schema I'm trying to generate the types for contains some negative numbers, eg:
Hello! 👋
When trying to run
npx openapicmd typegen
, I receive the following error:This seems to happen because the schema I'm trying to generate the types for contains some negative numbers, eg:
I checked the docs of the OpenAPI specs and this doesn't seem to be a real constraint of the specs themselves.
The text was updated successfully, but these errors were encountered: