craete initialize() to get each schema from .json

This commit is contained in:
AshwiniK-protean
2025-02-18 13:35:55 +05:30
parent 50f93d8239
commit 05259b3824
10 changed files with 480 additions and 373 deletions

View File

@@ -0,0 +1,14 @@
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
}