mangoGoForward commented on pull request #4819:
URL: https://github.com/apache/apisix/pull/4819#issuecomment-911320048


   > > > We may let users to specify the input and output type.
   > > 
   > > 
   > > Do you have any good suggestions? And We need users to specify 
"Content-Type" and "Accept" of request headers in this plugin
   > > 
https://github.com/mangoGoForward/apisix/blob/df782db7905cfe983188e53e2f645db48d956eed/apisix/plugins/xml-json-conversion.lua#L91
   > 
   > Such as:
   > 
   > ```json
   > {
   >   "rules": [
   >      {
   >         "from": "json",
   >         "to": "yaml"
   >      },
   >      {
   >         "from": "yaml",
   >          "to": "json"
   >      }
   >   ]
   > }
   > ```
   
   Do you mean support metadata like this:
   
   ```
   local schema = {
       type = "object",
       properties = {
           from = {
               type = "string",
               default = "yaml"
           },
           to = {
               type = "string",
               default = "json"
           }
       },
       required = {"from", "to"}
   }
   ```
   When user create Apisix Route or Service, they can  specify the input and 
output type? 


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to