chenjinfeng0505 opened a new issue, #9835:
URL: https://github.com/apache/apisix/issues/9835

   ### Description
   
   As I know, http_to_https、uri  and regex_uri  will both change  request to 
client. 
   When I use the following parameter settings route, it will report an error:
   
       "status": 1,
       "plugins": {
           "redirect": {
               "http_to_https": true,
               "ret_code": 301,
               "encode_uri": false,
               "append_query_string": false,
               "regex_uri": []
           }
       }
   
   error info:
   {
       "error_msg": "failed to check the configuration of plugin redirect err: 
property \"regex_uri\" validation failed: expect array to have at least 2 items"
   }
   
   
   At this time,http_to_https is true and regex_uri is empty. if without this 
regex_uri filed, it is successful.
   I want to know that after setting a field,Why can't other fields be empty 
and filed name must also be absent.
   
   
   
   ### Environment
   
   - APISIX version (run `apisix version`): 3.0.3
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


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

Reply via email to