Skip to content

Conversation

@tharu-jwd
Copy link

Summary

  • Fix Property Mediator documentation to show correct JSONPath syntax for MI 4.4.0
  • Update examples to use $.hospital_id instead of json-eval($.hospital_id)
  • Add clear documentation showing correct vs incorrect syntax

Changes Made

  • Property Mediator docs: Added example showing correct JSONPath syntax with explanatory note
  • Message Router pattern: Updated to use direct JSONPath syntax
  • JSON examples: Updated Property, Switch, and Filter mediator examples for consistency

Issue Fixed

Fixes issue where json-eval($.hospital_id) causes "Invalid XPath expression" error in MI 4.4.0.
In MI 4.4.0+, direct JSONPath expressions should be used without json-eval() wrapper.

Fixes #1502

- Update Property Mediator documentation to show correct JSONPath syntax for MI 4.4.0
- Change from json-eval($.hospital_id) to $.hospital_id in examples
- Add clear example showing correct vs incorrect syntax with explanatory note
- Update message router and JSON examples to use consistent syntax

Fixes issue where json-eval($.hospital_id) causes "Invalid XPath expression" error in MI 4.4.0.
In MI 4.4.0+, direct JSONPath expressions should be used without json-eval() wrapper.

Fixes wso2#1502
@CLAassistant
Copy link

CLAassistant commented Oct 23, 2025

CLA assistant check
All committers have signed the CLA.

@tharu-jwd
Copy link
Author

Hi @GDLMadushanka @SanojPunchihewa @anupama-pathirage @chanikag

I've created the PR. Please review.
TIA.

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.

Documentation Inaccuracy in Property Mediator Usage for MI 4.4.0

2 participants