You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
"type":"https://stoplight.io/prism/errors#UNPROCESSABLE_ENTITY",
"title":"Invalid request",
"status":422,
"detail":"Your request is not valid and no HTTP validation response was found in the spec, so Prism is generating this error for you.",
"validation":[
{
"location":[
"query"
],
"severity":"Error",
"code":"required",
"message":"Request query must have required property 'petid%5b%5d'"
}
]
}
Environment
Version used: prism 5.5.2
Environment name and version: Firefox 121.0(64 bit)
Operating System and version (desktop or mobile): macOS 14.1 (23B74)
The text was updated successfully, but these errors were encountered:
It's allowed to send an array data via query name ends with [] on PHP.
Ex.
http://127.0.0.1/foo.php?bar[]=1&bar[]=2
But prism proxy does not support query parameter name with "[]".
Steps to Reproduce
prism proxy --errors openapi.yaml http://example [11:06:16 AM] › [CLI] … awaiting Starting Prism… [11:06:16 AM] › [CLI] ℹ info GET http://127.0.0.1:4010/pet?petId%5B%5D=318 [11:06:16 AM] › [CLI] ▶ start Prism is listening on http://127.0.0.1:4010 [11:06:20 AM] › [HTTP SERVER] get /pet ℹ info Request received [11:06:20 AM] › [HTTP SERVER] get /pet ✖ error Request terminated with error: https://stoplight.io/prism/errors#UNPROCESSABLE_ENTITY: Invalid request
I got a error message when open http://127.0.0.1:4010/pet?petId%5B%5D=318
Environment
The text was updated successfully, but these errors were encountered: