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

Make Validation ADT more restrictive to particular field types #2

Open
dantb opened this issue May 19, 2023 · 0 comments
Open

Make Validation ADT more restrictive to particular field types #2

dantb opened this issue May 19, 2023 · 0 comments
Assignees

Comments

@dantb
Copy link
Owner

dantb commented May 19, 2023

Although many of the validations are shared, having one single ADT makes parsing a bit nasty when we can be more explicit about which validations belong to which field types. For instance IntValidation, RichTextValidation, etc. When can still have a supertype if it's still useful.

Probably worth making it an enum too.

@dantb dantb self-assigned this May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant