add error statement for context

This commit is contained in:
AshwiniK-protean
2025-04-23 18:06:19 +05:30
parent d86d23d43d
commit 914d6f47f2
222 changed files with 30003 additions and 1123 deletions

View File

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