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

WIP: Field validation #40

Draft
wants to merge 60 commits into
base: main
Choose a base branch
from

Conversation

JeffersonBledsoe
Copy link
Member

@JeffersonBledsoe JeffersonBledsoe commented Dec 12, 2023

This PR builds upon #37 To add support for validating fields. An optional install for Products.validation is added and the validators in here can be used to validate a field from a submission

Todo

  • Add some additional validators not found in Products.validation, such as "min length" and "max length" to cover existing validations that are covered by volto-form-block
  • Fix saving of settings. The deserializer for the frontend works well, but we need a serializer to convert back to something the validation objects support and update the objects themselves.
  • Tests

@JeffersonBledsoe JeffersonBledsoe marked this pull request as draft January 10, 2024 09:38
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

Successfully merging this pull request may close these issues.

None yet

1 participant