Skip to content

Conversation

@SanojPunchihewa
Copy link
Contributor

Purpose

Add Inline synapse expression support for Payload Factory mediator. With this improvement we can use the new synapse expressions in the template itself as follows,

<payloadFactory media-type="json">
    <format><![CDATA[{
        "variable": ${var.id},
        "username": "${payload.customer_name}",
        "escapedVariable": "${var.id}",
        "bool": ${payload.path},
        "escapedBool": "${payload.path}",
        "escapedObject": "${payload.pet}",
        "object": ${payload.pet}
        }]]>
        </format>
<args/>
</payloadFactory>

Related Issue

wso2/product-micro-integrator#3625

@SanojPunchihewa SanojPunchihewa merged commit eb71f70 into wso2:master Dec 5, 2024
1 of 2 checks passed
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.

2 participants