Open Jotschi opened 7 years ago
It should be possible to add custom constraints for field values.
Add a constraints property to field schemas which contains the constraint parameters.
constraints
{ "name" : "size", "label" : "Size", "constraints": { "min": 10, "max": 100, "match": [ 20, 30, 40 ] }, "type" : "number" }
{ "name" : "title", "label" : "Title", "constraints": { "min": 10, "max": 255, "match": [ "Title A", "Title B", "Title C" ], }, "type" : "number" }
It should be possible to add custom constraints for field values.
Add a
constraints
property to field schemas which contains the constraint parameters.Types
Number field constraint
String field constraint
TODOs
Questions