liuxiran commented on issue #792:
URL: 
https://github.com/apache/apisix-dashboard/issues/792#issuecomment-726223360


   There are two errors here:
   
   1. `headers` schema should be transformed just like `proxy-rewrite` and 
`response-rewrite` in fe plugin component
   
   1. `echo` schema still uses Draft5, that why we will see select element 
`Option1` in page. so It also needs to change the echo shema to Draft7.
   ```json
   {
       "additionalProperties": false,
       "required": ["before_body","body","after_body"],
       "minProperties": 1,
       "properties": {
        "after_body": {
                "description": "body after the modification of filter phase.",
                        "type": "string"
                },
                "auth_value": {
                        "description": "auth value",
                        "type": "string"
                },
                "before_body": {
                        "description": "body before the filter phase.",
                        "type": "string"
                },
                "body": {
                        "description": "body to replace upstream response.",
                        "type": "string"
                },
                "headers": {
                        "description": "new headers for response",
                        "minProperties":1,
                        "type": "object"
                }
        },
        "type": "object"
   }
   ```


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