Object contains extra field that is not in the validator.
I get this error. ArgumentValidationError: Object contains extra field
example
that is not in the validator.
How to allow pass args that have unknown args and make the validator just ignore them but make sure what is requested is in there?
Looked at the docs and couldn't find an example.3 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
That is not allowed at the moment. what you can do is use v.record where you allow all properties.
v.record(v.string(), v.any())
Thanks. That's what I figured. Instead, I've been less lazy and made sure to pass exactly what the validator expects so I keep type safety.