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
/pets:
get:
description: | Returns all petsoperationId: findPetsparameters:
- name: paramsin: queryrequired: falseschema:
type: object# If the parameter values are of specific type, e.g. string:# additionalProperties:# type: string# If the parameter values can be of different types# (e.g. string, number, boolean, ...)additionalProperties: true# `style: form` and `explode: true` is the default serialization method# for query parameters, so these keywords can be omittedstyle: formexplode: trueresponses:
'200':
description: pet responsecontent:
application/json:
schema:
type: arrayitems:
$ref: '#/components/schemas/Pet'default:
description: unexpected errorcontent:
application/json:
schema:
$ref: '#/components/schemas/Error'
Executing a query, returns
{"message":"Cannot convert undefined or null to object"}
Describe the bug
After adding a parameter that is supposed do allow dynamic query parameters, it gives error.
The idea of dynamic query parameters is taken from here (stack-overflow)
Query Example:
Executing a query, returns
To Reproduce
npm install
npm start
curl http://localhost:3000/v1/pets\?type\=dog\&limit\=10\&test\=query
Expected behavior
It must allow all the query strings
The text was updated successfully, but these errors were encountered: