add new schemas

This commit is contained in:
AshwiniK-protean
2025-02-27 10:23:49 +05:30
parent 87d546ea8a
commit 113aadbb0a
65 changed files with 7578 additions and 151 deletions

14
plugins/plugin.go Normal file
View 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)
}