This is an automated email from the ASF dual-hosted git repository.

littlecui pushed a commit to branch mod
in repository https://gitbox.apache.org/repos/asf/servicecomb-service-center.git

commit a9bb65c394e0f2508ce792b8268abca15adb05ad
Author: little-cui <[email protected]>
AuthorDate: Sat Aug 20 18:01:30 2022 +0800

    [fix]failed to create match-group policy
---
 server/service/grc/policy.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/service/grc/policy.go b/server/service/grc/policy.go
index a81ebf1f..5a74f2ea 100644
--- a/server/service/grc/policy.go
+++ b/server/service/grc/policy.go
@@ -55,7 +55,7 @@ func ValidatePolicySpec(kind string, spec interface{}) error {
        schema, ok := policySchemas[kind]
        if !ok {
                log.Warn(fmt.Sprintf("can not recognize policy %s", kind))
-               return &ErrIllegalItem{"not support kind yet", kind}
+               return nil
        }
        validator := validate.NewSchemaValidator(schema, nil, "", 
strfmt.Default)
        errs := validator.Validate(spec).Errors

Reply via email to