feat: rest validation on http requests (#3041)
This commit is contained in:
7
core/validation/validator.go
Normal file
7
core/validation/validator.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package validation
|
||||
|
||||
// Validator represents a validator.
|
||||
type Validator interface {
|
||||
// Validate validates the value.
|
||||
Validate() error
|
||||
}
|
||||
Reference in New Issue
Block a user