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
When attempting to make a call to a mock server running a swaggerfile that specifies an uppercase csv style array filter[] parameter, I encountered the below exception:
(node:90725) UnhandledPromiseRejectionWarning: Error: Space/pipe/comma.. delimited style is only applicable to array parameter
at DelimitedStyleDeserializer.deserialize (/Users/silcocc/workspace/project-membership/node_modules/@stoplight/prism-cli/node_modules/@stoplight/prism-http/dist/validator/deserializers/style/delimited.js:18:19)
at /Users/silcocc/workspace/project-membership/node_modules/@stoplight/prism-cli/node_modules/@stoplight/prism-http/dist/validator/validators/params.js:31:41
at /Users/silcocc/workspace/project-membership/node_modules/lodash/lodash.js:13401:38
at /Users/silcocc/workspace/project-membership/node_modules/lodash/lodash.js:4905:15
at baseForOwn (/Users/silcocc/workspace/project-membership/node_modules/lodash/lodash.js:2990:24)
at Function.mapValues (/Users/silcocc/workspace/project-membership/node_modules/lodash/lodash.js:13400:7)
at /Users/silcocc/workspace/project-membership/node_modules/@stoplight/prism-cli/node_modules/@stoplight/prism-http/dist/validator/validators/params.js:27:62
at map_ (/Users/silcocc/workspace/project-membership/node_modules/fp-ts/lib/Option.js:310:72)
at /Users/silcocc/workspace/project-membership/node_modules/fp-ts/lib/Option.js:366:60
at Object.pipe (/Users/silcocc/workspace/project-membership/node_modules/fp-ts/lib/function.js:202:38)
(node:90725) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async functionwithout a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 4)
Example of a parameter configuration that causes this:
Describe the bug
When attempting to make a call to a mock server running a swaggerfile that specifies an uppercase csv style array filter[] parameter, I encountered the below exception:
Example of a parameter configuration that causes this:
Whereas the following works fine:
To Reproduce
./node_modules/.bin/prism mock -h 0.0.0.0 "./swagger.json"
curl --location --request GET 'http://localhost:4010/v1/test'
Expected behavior
The API should response with a 200 OK
Additional context
Environment (remove any that are not applicable):
I wasn't able to find any similar topics in the community forum @ https://community.stoplight.io/search?q=filter
Full problematic Swagger 2 definition
The text was updated successfully, but these errors were encountered: