You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/10/17 09:00:25 UTC

[GitHub] [apisix] liuxiran commented on issue #2441: plugin(hmac-auth): update the schema

liuxiran commented on issue #2441:
URL: https://github.com/apache/apisix/issues/2441#issuecomment-710779509


   `hmac-auth` define two schemas:
   
   - one is : https://github.com/apache/apisix/blob/d1729c0af3bc416a88904568b4d2718c99a1982d/apisix/plugins/hmac-auth.lua#L40
   
   - the other one is: https://github.com/apache/apisix/blob/d1729c0af3bc416a88904568b4d2718c99a1982d/apisix/plugins/hmac-auth.lua#L47
   
   - and the schema returned to the caller is only:  https://github.com/apache/apisix/blob/d1729c0af3bc416a88904568b4d2718c99a1982d/apisix/plugins/hmac-auth.lua#L80
   
   maybe this is the cause of the problem, and this case has already made part of the plugins unuseable in dashboard.
   
   so is it possible to return differet schema depending on the different param or return all schemas that caller coulde Judge which one to use?
   
   @juzhiyuan @moonming @membphis @spacewander 
   
   


----------------------------------------------------------------
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:
users@infra.apache.org