Object contains extra field that is not in the validator
I work in a team and often run into problems with this error when switching between feature branches using the same database:
1. Is there some option to disable extra field validation errors?
2. If not, could is it possible to force schema validation errors to not block updates to convex functions so that I can still make changes to functions?
2 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!
You do have the option to turn off schema validation as needed: https://docs.convex.dev/database/schemas#schemavalidation-boolean
Schemas | Convex Developer Hub
Schema validation keeps your Convex data neat and tidy. It also gives you end-to-end TypeScript type safety!