Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Field Validation #25

Open
wschurman opened this issue May 30, 2020 · 1 comment
Open

Field Validation #25

wschurman opened this issue May 30, 2020 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@wschurman
Copy link
Member

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 wschurman added enhancement New feature or request good first issue Good for newcomers labels May 30, 2020
@wschurman
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant