From ec996f4025baed3bc3fb84dc08456cf06c0b8bd7 Mon Sep 17 00:00:00 2001 From: Mintu Gogoi <127925465+Gmin2@users.noreply.github.com> Date: Wed, 2 Oct 2024 14:31:54 +0530 Subject: [PATCH] feat: support for postman-collection conversion to asyncapi (#1527) Co-authored-by: Ashish Padhy <100484401+Shurtu-gal@users.noreply.github.com>%0ACo-authored-by: asyncapi-bot --- docs/usage.md | 8 +- src/commands/convert.ts | 117 ++++++++++++++++++--------- src/core/flags/convert.flags.ts | 2 +- test/fixtures/postman-collection.yml | 38 +++++++++ test/integration/convert.test.ts | 63 +++++++++++++++ 5 files changed, 185 insertions(+), 43 deletions(-) create mode 100644 test/fixtures/postman-collection.yml diff --git a/docs/usage.md b/docs/usage.md index 3a1ddf96022..aa203a2adf5 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -308,7 +308,7 @@ _See code: [src/commands/config/versions.ts](https://github.com/asyncapi/cli/blo ## `asyncapi convert [SPEC-FILE]` -Convert asyncapi documents older to newer versions or OpenAPI documents to AsyncAPI +Convert asyncapi documents older to newer versions or OpenAPI | postman-collection documents to AsyncAPI ``` USAGE @@ -318,12 +318,12 @@ ARGUMENTS SPEC-FILE spec path, url, or context-name FLAGS - -f, --format=