craete initialize() to get each schema from .json
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
package main
|
||||
|
||||
import "context"
|
||||
|
||||
type Validator interface {
|
||||
Validate(ctx context.Context, b []byte) error //context parameter
|
||||
}
|
||||
|
||||
type ValidatorProvider interface {
|
||||
New(p string) (Validator, error)
|
||||
}
|
||||
Reference in New Issue
Block a user