Skip to content

Fix: Update variable mediator syntax in documentation [main] - #2458

Open
tmoasz wants to merge 1 commit into
wso2:mainfrom
tmoasz:fix/variable-mediator-syntax
Open

tmoasz wants to merge 1 commit into
wso2:mainfrom
tmoasz:fix/variable-mediator-syntax

Conversation

@tmoasz

@tmoasz tmoasz commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Purpose

The documentation contains outdated Variable mediator syntax using var instead of the current vars syntax.

Goals

Update the affected examples and descriptions to use the current vars syntax.

Approach

Updated the following documentation in pages:

  • en/docs/reference/mediators/foreach-mediator.md
  • en/docs/reference/mediators/log-mediator.md
  • en/docs/reference/mediators/payloadfactory-mediator.md

No UI changes are included.

User stories

User now can use samples from docs without issues.

Release note

Corrected use of Variable mediator syntax in the ForEach, Log, and Payload mediator documentation.

Documentation

This PR directly updates the affected documentation pages.

Training

N/A; no training content is affected.

Certification

N/A; this documentation-only correction does not affect certification exams.

Marketing

N/A.

Automation tests

  • Unit tests: N/A; documentation-only change.
  • Integration tests: N/A; documentation-only change.

Security checks

  • Followed secure coding standards: Yes, no executable code was changed.
  • Ran FindSecurityBugs: N/A; no Java code was changed.
  • Confirmed that no keys, passwords, tokens, usernames, or other secrets were added: Yes.

Samples

Updated documentation examples to use ${vars.<name>} instead of ${var.<name>}.

Related PRs

N/A.

Migrations

N/A; documentation-only change.

Test environment

N/A; only docs changes

Learning

Reviewed the current Variable mediator syntax and existing ${vars...} usage in the repository, then updated the affected mediator documentation consistently.

@tmoasz tmoasz changed the title fix: update variable mediator syntax in documentation Fix: Update variable mediator syntax in documentation Sep 15, 2026
@tmoasz tmoasz changed the title Fix: Update variable mediator syntax in documentation Fix: Update variable mediator syntax in documentation [main] Sep 15, 2026
@coderabbitai

coderabbitai Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: e3ec2d77-0093-4bb7-9919-467b23ef86a8

📥 Commits

Reviewing files that changed from the base of the PR and between 4b53cba and 3ed71d6.

📒 Files selected for processing (3)
  • en/docs/reference/mediators/foreach-mediator.md
  • en/docs/reference/mediators/log-mediator.md
  • en/docs/reference/mediators/payloadfactory-mediator.md

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


📝 Summary

Summary

  • Updated Variable mediator syntax from ${var.<name>} to ${vars.<name>} in the ForEach, Log, and PayloadFactory documentation.
  • Updated related examples, descriptions, and FreeMarker variable references.
  • Documentation-only change with no code or test impact.

Walkthrough

The documentation updates replace incorrect ${var...} references with ${vars...} in ForEach, Log, and PayloadFactory mediator examples. PayloadFactory descriptions and its root-variable table also now use vars.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 3ed71

This documentation-only change consistently corrects variable references to the documented vars prefix.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
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 description covers the required sections and clearly explains the documentation-only correction, affected pages, testing scope, and non-impact areas.
Title check ✅ Passed The title clearly identifies the main change: updating Variable mediator syntax in documentation. The trailing [main] is unnecessary but does not make the title misleading.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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