Skip to content

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

# Conflicts:
#	src/collective/volto/formsupport/restapi/services/submit_form/post.py
#	src/collective/volto/formsupport/tests/test_send_action_form.py
# Conflicts:
#	src/collective/volto/formsupport/restapi/services/submit_form/post.py
# Conflicts:
#	src/collective/volto/formsupport/tests/test_send_action_form.py
# Conflicts:
#	src/collective/volto/formsupport/restapi/services/submit_form/post.py
#	src/collective/volto/formsupport/tests/test_send_action_form.py
# Conflicts:
#	setup.py
#	src/collective/volto/formsupport/configure.zcml
#	src/collective/volto/formsupport/restapi/deserializer/configure.zcml
#	src/collective/volto/formsupport/restapi/serializer/blocks.py
#	src/collective/volto/formsupport/restapi/services/submit_form/post.py
#	src/collective/volto/formsupport/tests/test_send_action_form.py
#	src/collective/volto/formsupport/tests/test_store_action_form.py
# Conflicts:
#	src/collective/volto/formsupport/adapters/post.py
# Conflicts:
#	src/collective/volto/formsupport/restapi/services/submit_form/field.py
#	src/collective/volto/formsupport/restapi/services/submit_form/post.py
#	src/collective/volto/formsupport/tests/test_send_action_form.py
#	src/collective/volto/formsupport/tests/test_store_action_form.py
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.

1 participant