Skylm808 commented on code in PR #909:
URL: https://github.com/apache/dubbo-go-pixiu/pull/909#discussion_r3226677937


##########
pkg/filter/http/apiconfig/api_config.go:
##########
@@ -69,17 +74,31 @@ func (factory *FilterFactory) Config() any {
 func (factory *FilterFactory) Apply() error {
        factory.apiService = api.NewLocalMemoryAPIDiscoveryService()
 
+       if factory.cfg.Dynamic && (factory.cfg.EnableOpenAPIValidation || 
factory.cfg.OpenAPIPath != "") {
+               return errors.New("dynamic api config does not support openapi 
validation")
+       }
+
        if factory.cfg.Dynamic {
                
server.GetApiConfigManager().AddApiConfigListener(factory.cfg.DynamicAdapter, 
factory)
                return nil
        }
 
+       if factory.cfg.EnableOpenAPIValidation && factory.cfg.OpenAPIPath != "" 
{

Review Comment:
   已修改



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to