I was using checks on my methods to validate before insert and update, and added the package audit-argument-checks to enforce the use of checks. Now I’m using Collections2 and I don’t know if I should continue using checks, due to the fact that Collection2 and SimpleSchema validate the data.
On my methods I’m using checks this way:
The problem is that on my schema I have a required field with a default value. If I insert directly without methods, Collection2 automatically create the field with the default value. But if I use methods, on the check line fail due to the fact that the required field doesn’t exist yet.