Skip to content

Commit

Permalink
AB-289-added-code-reverted-uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
AyushShri committed Dec 14, 2024
1 parent d8d9367 commit 7217383
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
7 changes: 2 additions & 5 deletions libV2/schemaUtils.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const generateAuthForCollectionFromOpenAPI = require('./helpers/collection/generateAuthForCollectionFromOpenAPI');
const utils = require('./utils');
const { v4: uuidv4 } = require('uuid');

const schemaFaker = require('../assets/json-schema-faker'),
_ = require('lodash'),
Expand Down Expand Up @@ -2488,14 +2487,12 @@ let QUERYPARAM = 'query',
let headers = resolveResponseHeaders(context, responseSchema.headers),
bodyHeaderObj,
respBlock,
uuid;
resolvedHeadersList = context.resolvedSchemaTypes;
resolvedHeadersList = context.resolvedSchemaTypes;
bodyHeaderObj =
resolvedExamplesList ? {
body: JSON.stringify(resolvedExamplesList[0], null, 2),
headers: JSON.stringify(resolvedHeadersList, null, 2) } : {};
uuid = uuidv4();
respBlock = { [uuid]: bodyHeaderObj };
respBlock = { [code]: bodyHeaderObj };
Object.assign(finalRespBlock, respBlock);

context.resolvedSchemaTypes = null;
Expand Down
1 change: 0 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@
"path-browserify": "1.0.1",
"postman-collection": "^4.4.0",
"swagger2openapi": "7.0.8",
"uuid": "^8.3.2",
"yaml": "1.10.2"
},
"author": "Postman Labs <[email protected]>",
Expand Down

0 comments on commit 7217383

Please sign in to comment.