juzhiyuan opened a new issue #2088:
URL: https://github.com/apache/apisix/issues/2088


   refer to https://github.com/apache/apisix/issues/2082#issue-681772868
   
   ## Currently
   ```json
   {
       "minProperties":1,
       "properties":{
           "abort":{
               "properties":{
                   "body":{
                       "minLength":0,
                       "type":"string"
                   },
                   "http_status":{
                       "minimum":200,
                       "type":"integer"
                   }
               },
               "required":[
                   "http_status"
               ],
               "type":"object"
           },
           "delay":{
               "properties":{
                   "duration":{
                       "minimum":0,
                       "type":"number"
                   }
               },
               "required":[
                   "duration"
               ],
               "type":"object"
           }
       },
       "type":"object"
   }
   
   ```
   
   ## Expected
   No expected schema currently,  but here are some issues we should handle:
   - [ ] Use oneOf for abort and delay properties if needed;
   - [ ] Update the Doc: 
https://github.com/apache/apisix/blob/master/doc/plugins/fault-injection.md#attributes


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