From a98a5567c574792f6328d918d669e7ae1ce25714 Mon Sep 17 00:00:00 2001 From: Mohammad Noor Abu Khleif Date: Thu, 2 Nov 2023 16:46:32 +0300 Subject: [PATCH] feat(postman): support generating Postman collections with many nested levels (#118) --- README.md | 1 + package-lock.json | 4 ++-- package.json | 2 +- src/transformer/PostmanTransformer.ts | 4 +++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f1770e7..b96799f 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ npx -p @expediagroup/spec-transformer cli --input specs.yaml --output out.yaml - ### 3. Build and run spec-transformer locally ```bash +npm install npm run build ``` diff --git a/package-lock.json b/package-lock.json index 0e5be75..244d1cc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@expediagroup/spec-transformer", - "version": "1.6.0", + "version": "1.7.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@expediagroup/spec-transformer", - "version": "1.6.0", + "version": "1.7.0", "license": "Apache-2.0", "dependencies": { "commander": "11.1.0", diff --git a/package.json b/package.json index d341db0..c5d5763 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@expediagroup/spec-transformer", - "version": "1.6.0", + "version": "1.7.0", "description": "API Spec Transformer", "repository": { "type": "git", diff --git a/src/transformer/PostmanTransformer.ts b/src/transformer/PostmanTransformer.ts index c8a6f8b..19a93d2 100644 --- a/src/transformer/PostmanTransformer.ts +++ b/src/transformer/PostmanTransformer.ts @@ -31,7 +31,9 @@ export class PostmanTransformer implements Transformer { const options: Options = { folderStrategy: 'Tags', - requestParametersResolution: 'Example' + requestParametersResolution: 'Example', + optimizeConversion: false, + stackLimit: 50 }; let result: Record = {};