update the file structure update Initialise function , update interface and update code and write table test cases

This commit is contained in:
AshwiniK-protean
2025-03-13 07:55:54 +05:30
parent ced64648f6
commit 0488eccc3b
27 changed files with 708 additions and 808 deletions

View File

@@ -0,0 +1,16 @@
package definition
import (
"context"
"net/url"
)
// Validator interface for schema validation
type Validator interface {
Validate(ctx context.Context, url url.URL, payload []byte) (bool, error)
}
// ValidatorProvider interface for creating validators
type ValidatorProvider interface {
New(ctx context.Context, config map[string]string) (map[string]Validator, error)
}