Skip to content

Commit

Permalink
It's value => Its value (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks authored Dec 8, 2020
1 parent c8eb467 commit d7757fa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/middlewares/parsers/req.parameter.mutator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
}
Expand Down
4 changes: 2 additions & 2 deletions test/openapi.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
);
}));

Expand Down Expand Up @@ -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.",
);
}));

Expand Down
2 changes: 1 addition & 1 deletion test/query.params.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
);
}));

Expand Down

0 comments on commit d7757fa

Please sign in to comment.