You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to map input and output payloads using the Data Mapper Mediator. However, observed an issue where certain fields in the request payload, which have names containing underscores, are not being correctly mapped to the input schema file. This results in missing attributes in the response payload.
In this case, the values of f_name that is passed by the client is not seen inside the mediation and it’s not even mapped with the output schema file which results in no value for that attribute in the response.
As per the analysis, we could see that the auto generated input schema file will convert f_name into f:name as you can see below.
By the way, we have observed this behaviour when deploying artifacts using VS Code Plugin only. Integration Studio provides the expected results with the same artifacts.
Description
Trying to map input and output payloads using the Data Mapper Mediator. However, observed an issue where certain fields in the request payload, which have names containing underscores, are not being correctly mapped to the input schema file. This results in missing attributes in the response payload.
Eg :
Request payload
Input schema file
Output schema file
In this case, the values of f_name that is passed by the client is not seen inside the mediation and it’s not even mapped with the output schema file which results in no value for that attribute in the response.
As per the analysis, we could see that the auto generated input schema file will convert f_name into f:name as you can see below.
When deploying artifacts with VS Code Plugin
By the way, we have observed this behaviour when deploying artifacts using VS Code Plugin only. Integration Studio provides the expected results with the same artifacts.
When deploying artifacts with Integration Studio
Steps to Reproduce
input.xml
output.xml
Regards,
Janitha
[1] https://mi.docs.wso2.com/en/latest/develop/mi-for-vscode/install-wso2-mi-for-vscode/
Version
MI 4.3.0
Environment Details (with versions)
No response
The text was updated successfully, but these errors were encountered: