We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d66cce3 commit 912898dCopy full SHA for 912898d
tools/postman/validation/functions/patchRequestShouldHaveBody.js
@@ -1,13 +1,13 @@
1
export default (request) => {
2
- if (request.method !== 'PATCH') {
3
- return;
4
- }
5
- const body = request.body;
6
- if (!body?.raw) {
7
- return [
8
- {
9
- message: `Patch request should have a body.`,
10
- },
11
- ];
12
+ if (request.method !== 'PATCH') {
+ return;
+ }
+ const body = request.body;
+ if (!body?.raw) {
+ return [
+ {
+ message: `Patch request should have a body.`,
+ },
+ ];
13
};
0 commit comments