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

feat: enable proxy support in the cli #1608

Merged
merged 13 commits into from
Jan 5, 2025

Conversation

AayushSaini101
Copy link
Collaborator

@AayushSaini101 AayushSaini101 commented Dec 23, 2024

closes: #862
Related: #1508
Reference:https://www.zenrows.com/blog/node-fetch-proxy#how-to-use-proxy-with-node-fetch of the implementation flow of the proxy

Copy link

changeset-bot bot commented Dec 23, 2024

⚠️ No Changeset found

Latest commit: 57166aa

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@AayushSaini101
Copy link
Collaborator Author

AayushSaini101 commented Dec 23, 2024

As discussed with @Souvikns planning to create a global flags that is proxyHost and proxyPort that can easily help to integrate proxy supports with various commands of the CLI.

Asyncapi validate
Asyncapi convert
Asyncapi optimise

Copy link
Member

@Souvikns Souvikns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AayushSaini101 can we have some tests for this.

@AayushSaini101 AayushSaini101 force-pushed the issue-862 branch 3 times, most recently from f96f9b6 to fe8ee83 Compare January 4, 2025 09:46
@AayushSaini101
Copy link
Collaborator Author

@AayushSaini101 can we have some tests for this.

Done @Souvikns

Souvikns
Souvikns previously approved these changes Jan 4, 2025
Copy link
Member

@Souvikns Souvikns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see you have updated 3 commands, [convert, optimize, validate], I don't see any tests for optimize commands, shouldn't you also add test for optimize command.

Copy link

sonarqubecloud bot commented Jan 5, 2025

@AayushSaini101
Copy link
Collaborator Author

I see you have updated 3 commands, [convert, optimize, validate], I don't see any tests for optimize commands, shouldn't you also add test for optimize command.

Added test case for all the commands thanks @Souvikns : )

1 similar comment
@AayushSaini101
Copy link
Collaborator Author

I see you have updated 3 commands, [convert, optimize, validate], I don't see any tests for optimize commands, shouldn't you also add test for optimize command.

Added test case for all the commands thanks @Souvikns : )

Copy link
Member

@Souvikns Souvikns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect!

@AayushSaini101
Copy link
Collaborator Author

/rtm

@asyncapi-bot asyncapi-bot merged commit 430898d into asyncapi:master Jan 5, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Add support for proxy
3 participants