15 lines
329 B
Go
15 lines
329 B
Go
package plugin_definition
|
|
|
|
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) error
|
|
}
|