From d7757fade9faad40ac64adacd23b7f6ba9537101 Mon Sep 17 00:00:00 2001 From: Volodymyr Kolesnykov Date: Tue, 8 Dec 2020 03:54:43 +0200 Subject: [PATCH] It's value => Its value (#479) --- src/middlewares/parsers/req.parameter.mutator.ts | 2 +- test/openapi.spec.ts | 4 ++-- test/query.params.spec.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/middlewares/parsers/req.parameter.mutator.ts b/src/middlewares/parsers/req.parameter.mutator.ts index 5ec21763..16dccbce 100644 --- a/src/middlewares/parsers/req.parameter.mutator.ts +++ b/src/middlewares/parsers/req.parameter.mutator.ts @@ -297,7 +297,7 @@ export class RequestParameterMutator { if (!vs) return; for (const v of vs) { if (v?.match(RESERVED_CHARS)) { - const message = `Parameter '${name}' must be url encoded. It's value may not contain reserved characters.`; + const message = `Parameter '${name}' must be url encoded. Its value may not contain reserved characters.`; throw new BadRequest({ path: `.query.${name}`, message: message }); } } diff --git a/test/openapi.spec.ts b/test/openapi.spec.ts index 3d890e2b..83f23381 100644 --- a/test/openapi.spec.ts +++ b/test/openapi.spec.ts @@ -91,7 +91,7 @@ describe(packageJson.name, () => { expect(r.body) .to.have.property('message') .that.equals( - "Parameter 'testJson' must be url encoded. It's value may not contain reserved characters.", + "Parameter 'testJson' must be url encoded. Its value may not contain reserved characters.", ); })); @@ -150,7 +150,7 @@ describe(packageJson.name, () => { expect(r.body) .to.have.property('message') .that.equals( - "Parameter 'testArray' must be url encoded. It's value may not contain reserved characters.", + "Parameter 'testArray' must be url encoded. Its value may not contain reserved characters.", ); })); diff --git a/test/query.params.spec.ts b/test/query.params.spec.ts index 70e01353..8969fbbd 100644 --- a/test/query.params.spec.ts +++ b/test/query.params.spec.ts @@ -134,7 +134,7 @@ describe(packageJson.name, () => { .then(r => { const body = r.body; expect(body.message).equals( - "Parameter 'value' must be url encoded. It's value may not contain reserved characters.", + "Parameter 'value' must be url encoded. Its value may not contain reserved characters.", ); }));