created a plugin for schema validation and related unit test

This commit is contained in:
AshwiniK-protean
2025-02-14 11:05:54 +05:30
parent 91f0b16b5c
commit 50f93d8239
10 changed files with 600 additions and 0 deletions

11
plugins/plugin.go Normal file
View File

@@ -0,0 +1,11 @@
package main
import "context"
type Validator interface {
Validate(ctx context.Context, b []byte) error //context parameter
}
type ValidatorProvider interface {
New(p string) (Validator, error)
}