idbeta opened a new issue #1175:
URL: https://github.com/apache/apisix-dashboard/issues/1175


   # Bug report
   
   ## Describe the bug
   
    if there is only one plugin in the plugin list, an error will be prompted 
when deleting it.
   
   ## How to Reproduce
   
   1. Go to `plugin list` page
   2. enable **one** plugin, like "prometheus"
   3. deleting it by `Delete` button
   4. See error
   
   
![image](https://user-images.githubusercontent.com/7396835/103403403-e4bb9200-4b8a-11eb-8d69-3f45daef2ead.png)
   
   ```
   Request URL: http://40.72.102.110:9000/apisix/admin/global_rules/1
   Request Method: PUT
   Request Body: {"id":"1","plugins":{}}
   Response: {"code":10000,"message":"schema validate failed: (root): plugins 
is required","data":null,"request_id":"f4a2eaed-3698-44ca-b64c-223239336b8a"}
   ```
   


----------------------------------------------------------------
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:
[email protected]


Reply via email to