entity icon indicating copy to clipboard operation
entity copied to clipboard

Field Validation

Open wschurman opened this issue 4 years ago • 1 comments

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 avatar May 30 '20 17:05 wschurman

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).

wschurman avatar Dec 16 '20 04:12 wschurman