plone / volto

React-based frontend for the Plone Content Management System
https://demo.plone.org/
MIT License
446 stars 606 forks source link

Add foundations for extensible validation in forms #6161

Closed sneridagh closed 1 month ago

netlify[bot] commented 1 month ago

Deploy Preview for plone-components canceled.

Name Link
Latest commit 315285419271126e38c579fb68d65c183f593cad
Latest deploy log https://app.netlify.com/sites/plone-components/deploys/6698c82ca89ad600086fc5c5
ericof commented 1 month ago

@wesleybl, @luxcas This is about getting validation also on blocks

tiberiuichim commented 1 month ago

~@sneridagh Is it possible to pass parameters to validators? For example, if I have a validator "minmax", would I have to create and register a custom one for each use case?~

Edit: nevermind, the validator function gets the field definition, so it's possible to set those in the schema

ichim-david commented 1 month ago

Closing this pull request since we have the superseding https://github.com/plone/volto/pull/6181