dickermosheD
Convex Community5mo ago
1 reply
dickermoshe

The `function-spec` command is broken

If you have a literal bigint in in your function schema, it crashes.
https://github.com/get-convex/convex-backend/issues/212

Additionally, the generated schema reports "JavaScript numbers" aka. doubles/floats as integers.
https://github.com/get-convex/convex-backend/issues/213

I opened Github issues for this and am opening here to for more visibility.

PS: Additionally, it seems that the --file options is broken as well.
GitHub
Running npx convex function-spec on an environment which has the following function crashes: export const query12 = query({ args: { i: v.literal(BigInt(1)), }, returns: { i: v.literal(BigInt(1)), }...
`npx convex function-spec` crashes on literal BigInt · Issue #212 ...
GitHub
The following task: export const query10 = query({ args: { i: v.literal(1), }, returns: { i: v.literal(1), }, handler: (ctx, args) => { return args; }, }); Will produce the following schema: { &...
`npx convex function-spec` Reports incorrect literal · Issue #213 ...
Was this page helpful?