Specifically, support validation functions in models which would operate on the entire records instead of a single field.
Ideal usage should look like this:
class Stuff(Model):
foo = Field.string()
bar = Field.string()
@validator(pre=True)
def _validate_row_before_fields_validations(self, row):
...
@validator()
def _validate_row_after_fields_validations(self, row):
...
This ideally also solves the actual hackery behind the unique
field validator, as with a record validator there's no need to recognize/store primary fields somewhere (see emmett-framework/emmett#428 ).
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too