You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/07/16 06:35:52 UTC

[GitHub] [incubator-apisix] membphis commented on issue #1604: bug: stand alone mode proxy-rewrite headers has bug

membphis commented on issue #1604:
URL: https://github.com/apache/incubator-apisix/issues/1604#issuecomment-659190647


   we need to check schema after we got the conf, here is an example:
   
    
   ```lua
   if data_valid and self.item_schema then
       data_valid, err = check_schema(self.item_schema, item.value)
       if not data_valid then
           log.error("failed to check item data of [", self.key,
                       "] err:", err, " ,val: ", json.encode(item.value))
       end
   end
   ```
   
   Here is the code for config_etcd:
   https://github.com/apache/incubator-apisix/blob/master/apisix/core/config_etcd.lua#L169


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org