Jaycean edited a comment on pull request #2509:
URL: https://github.com/apache/apisix/pull/2509#issuecomment-716355836


   @membphis I have some questions I want to discuss with you.
   
   The method I currently implement is to directly determine whether to return 
`consumer_schema` through whether the query field has `schema_type=consumer` in 
`apisix/admin/plugins.lua`. 
   ```
       local arg = get_uri_args()
       local json_schema = plugin.schema
       if arg and arg["schema_type"] == "consumer" then
           json_schema = plugin.consumer_schema
       end
   ```
   https://github.com/apache/apisix/issues/2441#issuecomment-714506729
   I thought of another implementation method to obtain the corresponding 
schema directly through the value of `schema_type`, but if Obtain directly 
through the value of `schema_type`, then you need to pass the corresponding 
complete 
schema_type:`/apisix/admin/schema/plugins/{plugin_name}?schema_type=consumer_schema`
   Instead of: `/apisix/admin/schema/plugins/{plugin_name}?schema_type=consumer`


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