liuxiran opened a new issue #2441:
URL: https://github.com/apache/apisix/issues/2441


   Part of https://github.com/apache/apisix/issues/2082
   ### Current schema
   ```json
   {
        "additionalProperties": false,
        "properties": {
                "disable": {
                        "type": "boolean"
                }
        },
        "title": "work with route or service object",
        "type": "object"
   }
   ```
   the plugin page looks:
   ![2020-10-16 
20-39-49屏幕截图](https://user-images.githubusercontent.com/2561857/96259158-c3b5bd00-0fef-11eb-8375-b631eecead37.png)
   
   ---
   
   ### Expected schema
   according to the 
[doc](https://github.com/apache/apisix/blob/master/doc/zh-cn/plugins/hmac-auth.md#%E5%B1%9E%E6%80%A7)
 and [test 
case](https://github.com/apache/apisix/blob/1afa8f77272e6099d2c54e4f703f6a70adb16f72/t/plugin/hmac-auth.t#L27)
   
   ```json
   {
     "type": "object",
     "required": [
       "access_key",
       "secret_key"
     ],
     "properties": {
       "access_key": {
         "type": "string",
         "title": "Accesskey"
       },
       "secret_key": {
         "type": "string",
         "title": "Secretkey"
       },
       "algorithm": {
         "type": "string",
         "enum": [
           "hmac-sha1",
           "hmac-sha256",
           "hmac-sha512"
         ],
         "default": "hmac-sha256",
         "title": "Algorithm"
       },
       "clock_skew": {
         "type": "number",
         "title": "clockskew",
         "default": 0
       },
       "signed_headers": {
         "type": "array",
         "title": "A list of strings",
         "items": {
           "type": "string",
           "default": "bazinga"
         }
       }
     }
   }
   ```
   the form looks:
   
   ![2020-10-16 
21-06-48屏幕截图](https://user-images.githubusercontent.com/2561857/96261849-8b17e280-0ff3-11eb-8243-de6d4fca3691.png)
   
   ```


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