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
Prism mock server will respond with something like:
⬤ debug < Body: NickNames=Courage&NickNames=Stupid dog
ℹ info Request contains an accept header: */*
⚠ warning Request did not pass the validation rules
✖ error Request body property NickNames must be array
⬤ debug Unable to find a 422 response definition
⬤ debug Unable to find a 400 response definition
⬤ debug Unable to find a 'default' response definition
Expected Behavior
The request will succeed regardless of the way in which the parameters are coming since I think there isn't a standard way to handle the request parameters for x-www-form-urlencoded requests. FWIW, I looked for this in the W3 Org.
Possible Solution(s)
Identify the request validator and modify it to accept these type of requests.
The text was updated successfully, but these errors were encountered:
Accept array parameters with our without
[]
in the variable name.Context
Accept requests where the parameters in the body are defined with
[]
or without it.Current Behavior
Given a schema like this:
Prism won't complain if the request looks like this:
Note the parameter is
NickName[]
.However, the following request will fail:
Prism mock server will respond with something like:
Expected Behavior
The request will succeed regardless of the way in which the parameters are coming since I think there isn't a standard way to handle the request parameters for
x-www-form-urlencoded
requests. FWIW, I looked for this in the W3 Org.Possible Solution(s)
Identify the request validator and modify it to accept these type of requests.
The text was updated successfully, but these errors were encountered: