diff --git a/src/middlewares/openapi.request.validator.ts b/src/middlewares/openapi.request.validator.ts index 7c9b451a..c9e60b13 100644 --- a/src/middlewares/openapi.request.validator.ts +++ b/src/middlewares/openapi.request.validator.ts @@ -161,7 +161,7 @@ export class RequestValidator { throw validationError( 400, `.query.${q}`, - `Empty valued found for query parameter '${q}'`, + `Empty value found for query parameter '${q}'`, ); } } diff --git a/test/query.params.spec.ts b/test/query.params.spec.ts index de30fe50..59cdba6c 100644 --- a/test/query.params.spec.ts +++ b/test/query.params.spec.ts @@ -67,7 +67,7 @@ describe(packageJson.name, () => { .then(r => { expect(r.body) .to.have.property('message') - .that.equals('query parameter breed has empty value'); + .that.equals("Empty value found for query parameter 'breed'"); expect(r.body.errors) .to.be.an('array') .with.length(1);