Closed domanskyi closed 5 years ago
I have created validator:
const config = { schema, preserveResponseContentType: false, returnRequestErrors: true, returnResponseErrors: true, validateRequest: true, validateResponse: false, ajvRequestOptions: { coerceTypes: true, }, ajvResponseOptions: { coerceTypes: true, }, }
And have used this parameters:
parameters: [ { name: 'id', in: 'path', description: 'Id of job.', required: true, 'x-example': 10, type: 'number', }, ],
But when I`m making request to this route with something except number in id parameter I am still getting 200 response.
Why did you close it? Was it not an issue?
Just have seen another closed issue in which author had answered that parameters and query validation is not implemented.
I have created validator:
And have used this parameters:
But when I`m making request to this route with something except number in id parameter I am still getting 200 response.