Skip to content

Fix RabbitMQ and DB connector response examples - #2517

Open
HesandaLiyanage wants to merge 1 commit into
wso2:mainfrom
HesandaLiyanage:fix/connector-response-json
Open

HesandaLiyanage wants to merge 1 commit into
wso2:mainfrom
HesandaLiyanage:fix/connector-response-json

Conversation

@HesandaLiyanage

@HesandaLiyanage HesandaLiyanage commented Oct 22, 2026 •

Copy link
Copy Markdown

Purpose

Correct the RabbitMQ AMQP 1.0 and DB connector response examples so readers can copy valid JSON and expand the DB sample in its disclosure block.

Goals

Make all three response examples valid JSON, align RabbitMQ response fields with the connector implementation, and render the DB response within step 2's disclosure.

Approach

  • Fix the missing comma and use messageId in both RabbitMQ success-response examples. This matches the connector's response builder and the example's existing pass-through payload. Preserve the string value "true".
  • Remove the trailing comma from the DB response JSON.
  • Nest the DB response inside its Sample Response disclosure under step 2, preserving the ordered test steps.

User stories

As a connector user following these guides, I can copy valid response JSON and compare its fields with the connector's actual output.

Release note

Corrected RabbitMQ AMQP 1.0 response fields and JSON syntax, and fixed DB response JSON and disclosure formatting. Documentation-only correction.

Documentation

This PR updates these documentation sources:

Training

N/A — no training material or runtime behavior changes.

Certification

N/A — example syntax and formatting corrections do not change certification content.

Marketing

N/A — no new feature or marketing content.

Automation tests

Unit/integration test coverage: N/A for runtime code; no runtime code changed. Performed focused documentation checks:

  • Parsed all three corrected response examples with Python's JSON parser and checked their expected fields and values.
  • Rendered the affected Markdown with the configured Markdown/pymdownx extensions relevant to these pages. Verified the rendered JSON matches the source and the DB code block is inside its disclosure/list item.
  • git diff --check passed.

No full MkDocs site build or live RabbitMQ/database integration was run. No runtime connector code changes.

Security checks

  • Secure coding standards: N/A — documentation-only correction.
  • FindSecurityBugs: not run; no Java/runtime changes.
  • Confirmed that no credentials or secrets were added: yes. Existing illustrative message identifiers are unchanged.

Samples

Corrected the two RabbitMQ success-response examples and the DB generated-key response example in the pages linked above. No executable sample implementation changes.

Related PRs

N/A — this correction is independent; no dependent PRs.

Migrations (if applicable)

N/A — no runtime, configuration, or data migration.

Test environment

macOS; Python 3.14, Python-Markdown 3.11.2, pymdown-extensions 10.16.1. No JDK, database, RabbitMQ server, or browser integration was exercised.

Learning

Checked the RabbitMQ response builder linked under Approach to confirm messageId and the string value "true". Used Python's JSON parser and the relevant configured Markdown/pymdownx extensions to verify example syntax and rendered disclosure/list nesting.

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f6c71809-9a76-43e4-b4d7-7a8d0d6368fd
📥 Commits

Reviewing files that changed from the base of the PR and between f018dc1 and f9b2792.

📒 Files selected for processing: 3
  • en/docs/reference/connectors/db-connector/db-connector-example.md
  • en/docs/reference/connectors/rabbitmq-amqp-1.0-connector/rabbitmq-amqp-1.0-connector-example.md
  • en/docs/reference/connectors/rabbitmq-amqp-1.0-connector/rabbitmq-amqp-1.0-connector-reference.md

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📝 Summary

Updated the RabbitMQ AMQP 1.0 response examples to use valid JSON syntax and the messageId field. Fixed the DB response JSON by removing its trailing comma and placing it under the step 2 Sample Response disclosure. No connector runtime code changed.

The database connector response example no longer has a trailing comma after affectedRows. The RabbitMQ connector response and acknowledgment examples now use valid JSON syntax and the messageId property.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to f9b27

The documentation-only changes present no identified merge-blocking risk.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely identifies the main change: fixing RabbitMQ and DB connector response examples.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The pull request description is complete and follows the repository template. It explains the purpose, goals, approach, user impact, documentation updates, testing, security status, samples, migration…
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (3 skipped: 3 unsupported.)

Full details: Description check

Explanation

The pull request description is complete and follows the repository template. It explains the purpose, goals, approach, user impact, documentation updates, testing, security status, samples, migrations, and environment. It also clearly identifies the change as documentation-only and records the checks that were not run.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant