n2kN
Convex Community2mo ago
56 replies
n2k

hitting a snag during `bunx convex

hitting a snag during bunx convex import, how is this value {..., "maxSpaceCount" : 5, ...} (an object per line within a JSONL file), imported / read as 5.0, this fails the validator:
bunx convex import --table plans plans.jsonl
Import change summary:
table | create | delete |
-------------------------
plans | 6      | 0 of 0 |
Once the import has started, it will run in the background.
Interrupting `npx convex import` will not cancel it.
✖ Importing data from "plans.jsonl" to table "plans" failed

Hit an error while importing:
Failed to insert or update a document in table "plans" because it does not match the schema: Value does not match validator.
Path: .maxSpaceCount
Value: 5.0
Validator: v.int64()
Was this page helpful?