From 69febbb8578070cc3a542a458ef34b5668e8fa5e Mon Sep 17 00:00:00 2001 From: utnim2 Date: Mon, 23 Sep 2024 23:29:42 +0530 Subject: [PATCH 1/3] completed the cli support for conversion --- docs/usage.md | 8 ++-- src/commands/convert.ts | 13 +++++- src/core/flags/convert.flags.ts | 2 +- test/fixtures/postman-collection.yml | 38 +++++++++++++++++ test/integration/convert.test.ts | 63 ++++++++++++++++++++++++++++ 5 files changed, 117 insertions(+), 7 deletions(-) create mode 100644 test/fixtures/postman-collection.yml diff --git a/docs/usage.md b/docs/usage.md index d61d7012f91..44de9695d65 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=