Skip to content

Conversation

@asyncapi-bot
Copy link
Contributor

@asyncapi-bot asyncapi-bot commented Jun 21, 2025

Updated cli documentation is available and this PR introduces update to cli folder on the website

Summary by CodeRabbit

  • Documentation
    • Updated CLI command documentation to include new flags for suppressing warnings.
    • Clarified descriptions of existing flags and improved formatting for readability.
    • Added examples demonstrating usage of new suppression flags.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jun 21, 2025

Walkthrough

The documentation for the asyncapi validate CLI command was updated to include two new warning suppression flags, refine existing flag descriptions, enhance formatting, and add usage examples. No changes were made to the codebase or exported entities; only the documentation was modified for clarity and completeness.

Changes

File(s) Change Summary
markdown/docs/tools/cli/usage.md Updated documentation for asyncapi validate to add warning suppression flags, clarify flag descriptions, improve formatting, and add usage examples.

Sequence Diagram(s)

sequenceDiagram
    User->>CLI: Run `asyncapi validate` with flags
    CLI->>Validator: Pass flags including --suppressWarnings/--suppressAllWarnings
    Validator->>CLI: Validate and filter warnings as per flags
    CLI->>User: Output diagnostics with specified warnings suppressed
Loading

Possibly related PRs

Suggested labels

autoapproved, autoupdate

Suggested reviewers

  • quetzalliwrites
  • TRohit20
  • Aahil13
  • VaishnaviNandakumar
  • asyncapi-bot-eve

Poem

In the docs a change appears,
Suppressing warnings, calming fears.
Flags are added, clear and neat,
Examples show just how to treat
Each message, filtered with delight—
The CLI’s future’s looking bright!
🐇✨


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@netlify
Copy link

netlify bot commented Jun 21, 2025

Deploy Preview for asyncapi-website failed.

Name Link
🔨 Latest commit 36871a8
🔍 Latest deploy log https://app.netlify.com/projects/asyncapi-website/deploys/6858a44ec9d4730008e6f6e1

@codecov
Copy link

codecov bot commented Jun 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (275278b) to head (36871a8).
Report is 18 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #4197   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           22        22           
  Lines          778       778           
  Branches       144       144           
=========================================
  Hits           778       778           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (2)
markdown/docs/tools/cli/usage.md (2)

817-819: Fix grammar in suppressWarnings description
The sentence "Can be passed multiple times." lacks a subject. Consider rephrasing to "It can be passed multiple times."


824-830: Unify example annotation style
Other commands use inline comments (e.g., --example=default-example.yaml - create a new file...). Consider converting the explanatory lines for --suppressWarnings and --suppressAllWarnings to inline explanations with a dash for consistency.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d78a5b6 and 3ac0555.

📒 Files selected for processing (1)
  • markdown/docs/tools/cli/usage.md (1 hunks)
🧰 Additional context used
🪛 LanguageTool
markdown/docs/tools/cli/usage.md

[style] ~817-~817: To form a complete sentence, be sure to include a subject.
Context: ...o suppress from the diagnostics output. Can be passed ...

(MISSING_IT_THERE)

⏰ Context from checks skipped due to timeout of 180000ms (5)
  • GitHub Check: Automerge PR autoapproved by a bot
  • GitHub Check: Test NodeJS PR - ubuntu-latest
  • GitHub Check: Test NodeJS PR - windows-latest
  • GitHub Check: Test NodeJS PR - macos-13
  • GitHub Check: Lighthouse CI
🔇 Additional comments (3)
markdown/docs/tools/cli/usage.md (3)

795-798: Approve updated USAGE section
The USAGE block now correctly includes the new --suppressWarnings and --suppressAllWarnings flags. Formatting and indentation align with other commands.


805-814: Approve refined flag descriptions
The descriptions for -o, -w, --diagnostics-format, --fail-severity, --[no-]log-diagnostics, --proxyHost, and --proxyPort are now clearer, consistently capitalized, and end with periods.


821-823: Approve updated DESCRIPTION heading
Changing to "Validate an AsyncAPI file." uses consistent sentence case and aligns with other command descriptions.

@derberg derberg closed this Jul 7, 2025
@akshatnema akshatnema deleted the update-cli-docs-0754d1d60389e47d081464fe10b18a9bb4e0033c branch August 3, 2025 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants