add new schemas
This commit is contained in:
14
plugins/plugin.go
Normal file
14
plugins/plugin.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package plugins
|
||||
|
||||
import "context"
|
||||
|
||||
// Validator interface for schema validation
|
||||
type Validator interface {
|
||||
Validate(ctx context.Context, b []byte) error
|
||||
}
|
||||
|
||||
// ValidatorProvider interface for creating validators
|
||||
type ValidatorProvider interface {
|
||||
//Get(p string) (Validator, error)
|
||||
Initialize(schemaDir string) (map[string]Validator, error)
|
||||
}
|
||||
Reference in New Issue
Block a user