Field Validation
wschurman opened this issue · 1 comments
wschurman commented
Entity fields should do basic validation.
- UUIDField should validate that it's a UUID
- Primitive fields should validate their types
- EnumField should validate value being a member of a specified enum
- Custom validation functions should be possible as well.
wschurman commented
These could do validation on setField
(or createAsync
if we want to do validation of all the set fields at once), loadByField
, and we'll also want to decide whether this should just be for those APIs or also at load time (coming from the DB).