-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Include extact HTTP content in case of Multipart #4405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@LasneF I strongly agree. In fact I thought I included such an example, but I remember that the syntax highlighting was a mess and I put it on the back burner and never got around to it. I know @ralfhandl fixed syntax highlighting for query string examples — This is more complex, but perhaps we could figure it out? I remember finding a highlighter somewhere that would correctly read the |
@handrews Please create a PR adding such an example and let's see how it gets rendered and what can be improved. |
i will give it a try with a with the above content , @ralfhandl is there a way to check the renderer page of a branch ? |
When using multipart it can be confusing especially when dealing with array
in the case describes
it can be interesting to add the exact HTTP content
Rationnal : Prism fails to do validation of such structure ,
several AI tool chatbot replies divergent / not correct answer from the truth (or may be i am wrong still they are confused)
looks they are mixing the content , with the parameter name
Content-Type: multipart/form-data; boundary=--------------------------002292520254007945318895
----------------------------002292520254007945318895
Content-Disposition: form-data; name="id"
Content-Type: application/json
"32d49c7f-566c-4d07-9f13-08e74fb5c464"
----------------------------002292520254007945318895
Content-Disposition: form-data; name="addresses"
Content-Type: application/json
{
"street" : "4726 Earth Street"
"city" : "Houston"
}
----------------------------002292520254007945318895
Content-Disposition: form-data; name="addresses"
Content-Type: application/json
{
"street" : "4 Moon Street"
"city" : "Edwards"
}
----------------------------002292520254007945318895--
and not something with
----------------------------002292520254007945318895
Content-Disposition: form-data;
Content-Type: application/json
{
"addresses" : [ { "street" : "4 Moon Street" , "city" : "Edwards"} ,
{ "street" : "4726 Earth Street" , "city" : "Houston" } ]
}
The text was updated successfully, but these errors were encountered: