Validator from schema, including internal fields?
After some tinkering it looks like this:
I am exporting the validator from the
schema similar as described here https://stack.convex.dev/types-cookbookThe fact that I have to add the _id manually feels a bit awkward to me, but I need the id to be used as a foreign key
Am I doing something weird? Is this simply ok? (the action uses some of the fields of the record to create a record for a different table)
What I started looking for originally was like a built-in validator that can be extracted from the schema or somewhere else, similar as you can get the DB record type with Doc<"myTable"> but the equivalent for validators, including internal fields

