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


   Thanks for your report.
   
   There are two parts params validation can be defined in `request-validation` 
 plugin, one is the header params, another is body params.
   
   > The header fields are transmitted after the request line (in case of a 
request HTTP message) or the response line (in case of a response HTTP 
message), which is the first line of a message. Header fields are 
colon-separated key-value pairs in clear-text string format, terminated by a 
carriage return (CR) and line feed (LF) character sequence. (Quoted from 
[wiki](https://en.wikipedia.org/wiki/List_of_HTTP_header_fields) )
   
   Refer to the header params descriptions, we could only pass string values to 
headers, so IMHO,  @fukiki you would better modify your configuration mentioned 
in the issue.
   
   And for the body field, actually we can defiine any supported type to the 
property, that is a bug for online debug, I have modified, after the pr megerd, 
you can edited your json body in 
   
   
![mmexport1610532215693](https://user-images.githubusercontent.com/2561857/104437509-d11c1c80-55c9-11eb-887a-3caa6db96cb3.jpg)
   
   that is a also a way postman used.
   
   Hope this solution can help you, and welcome any feedback, thanks.
   
   
   


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