Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] New Command to convert asyncapi document to multiple format #1535

Open
2 tasks done
AayushSaini101 opened this issue Sep 30, 2024 · 3 comments
Open
2 tasks done
Labels
enhancement New feature or request

Comments

@AayushSaini101
Copy link
Contributor

Why do we need this improvement?

There are multiple formats of the asyncapi file that are yaml or JSON or yml. Need a separate commands to covert yaml to json or vice-versa

How will this change help?

Increase the developer experience in cli

Screenshots

image

How could it be implemented/designed?

Need to write a function to change one format to another format.

🚧 Breaking changes

No

👀 Have you checked for similar open issues?

  • I checked and didn't find a similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue?

Yes I am willing to submit a PR!

@AayushSaini101 AayushSaini101 added the enhancement New feature or request label Sep 30, 2024
@github-project-automation github-project-automation bot moved this to To Triage in CLI - Kanban Sep 30, 2024
@toffee-k21
Copy link
Contributor

Hi @AayushSaini101,

Thanks for your work on this project! I was wondering if it's possible to use the API for this conversion of yaml to json or vice versa. Would this be the recommended approach?

Looking forward to your response. Thanks again!

@AayushSaini101
Copy link
Contributor Author

Hi @AayushSaini101,

Thanks for your work on this project! I was wondering if it's possible to use the API for this conversion of yaml to json or vice versa. Would this be the recommended approach?

Looking forward to your response. Thanks again!

@toffee-k21 if the library is small in size you can use it otherwise try to implement the logic to convert

@catosaurusrex2003
Copy link

I would like to work on this.
by using js-yaml
similar to how it is being done while converting in studio

Will raise a PR once it is done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: To Triage
Development

No branches or pull requests

3 participants