feat: added contextKeys and domain in schema error

This commit is contained in:
mayur.popli
2025-04-10 15:30:02 +05:30
parent d329a31d45
commit bd3a836bdb
2 changed files with 5 additions and 1 deletions

View File

@@ -78,7 +78,7 @@ func (v *schemaValidator) Validate(ctx context.Context, url *url.URL, data []byt
// Retrieve the schema from the cache.
schema, exists := v.schemaCache[schemaFileName]
if !exists {
return model.NewBadReqErr(errors.New("schema not found for domain"))
return model.NewBadReqErr(errors.New(fmt.Sprintf("schema not found for domain: %s", domain)))
}
var jsonData any