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


   # Bug report
   
   ## Describe the bug
   
   config route with non-existent fields should return 400
   
   ## How to Reproduce
   
   ```
   {
                        caseDesc: "config route with non-existent fields (r1)",
                        Object:   MangerApiExpect(t),
                        Path:     "/apisix/admin/routes/r1",
                        Method:   http.MethodPut,
                        Body: `{
                                        "uri": "/hello",
                                        "nonexistent": "test non-existent",
                                        "upstream": {
                                                "type": "roundrobin",
                                                "nodes": [{
                                                        "host": "172.16.238.20",
                                                        "port": 1980,
                                                        "weight": 1
                                                }]
                                        }
                                }`,
                        Headers:      map[string]string{"Authorization": token},
                        ExpectStatus: http.StatusBadRequest,
                },
   ```
   


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