add Block + Component, add TextComponent with min, max and regex validators and early NumberComponent
This commit is contained in:
7
internal/block/validation/component_option.go
Normal file
7
internal/block/validation/component_option.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package validation
|
||||
|
||||
type ComponentOption func(*ComponentConfig)
|
||||
|
||||
type ComponentConfig struct {
|
||||
Validators []Validator
|
||||
}
|
||||
Reference in New Issue
Block a user