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 a5b9c6e commit e642b88Copy full SHA for e642b88
tools/postman/validation/functions/folderDescription.js
@@ -1,6 +1,7 @@
1
export default (collection) => {
2
const errors = [];
3
const items = collection.item;
4
+ let test;
5
for (let item of items) {
6
if (!item.request && !item.description) {
7
errors.push({
tools/postman/validation/functions/patchRequestShouldHaveBody.js
@@ -1,13 +1,13 @@
export default (request) => {
- if (request.method !== 'PATCH') {
- return;
- }
- const body = request.body;
- if (!body?.raw) {
- 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