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

@@ -3,6 +3,7 @@ package main
import (
"context"
"net/http"
"strings"
"github.com/beckn/beckn-onix/pkg/plugin/implementation/reqpreprocessor"
)
@@ -14,6 +15,9 @@ func (p provider) New(ctx context.Context, c map[string]string) (func(http.Handl
if role, ok := c["role"]; ok {
config.Role = role
}
if contextKeys, ok := c["contextKeys"]; ok {
config.ContextKeys = strings.Split(contextKeys, ",")
}
return reqpreprocessor.NewPreProcessor(config)
}