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
Freemarker template used in PayloadaFactory mediator does not allow to pass optional parameters empty,
Steps to Reproduce
Using the IntegartionStudio 8.2.0 create a SoapToREST API using the RemoteUserStoreManagerService wsdl
For the getUserCalimValues,
userName and profileName values are optional [2] but in the auto-generated logic, it is not considered
auto-generated logic from IntegrationStudio 8.2.0
Since the profileName is optional, if we invoke the API in MI with the following request payload, it will gives the following error at MI Request Json Payload
Add optional value support to WSDL
Add required properties to OAS and wrap optional elements with <#if> elements in
freemarker template
Fixeswso2/api-manager/issues/1985
Add optional value support to WSDL
Add required properties to OAS and wrap optional elements with <#if> elements in
freemarker template
Fixeswso2/api-manager/issues/1985
Description
Freemarker template used in PayloadaFactory mediator does not allow to pass optional parameters empty,
Steps to Reproduce
auto-generated logic from IntegrationStudio 8.2.0
Request Json Payload
Since the profileName is optional, if we invoke the API in MI with the following request payload, it will gives the following error at MI
Request Json Payload
Error
Steps to Resolve
Update the freemarker template to allow the optional parametes.
As an example, in order to allow the profileName attribute optional, update the the generated payload as follows
[1] https://is.docs.wso2.com/en/5.9.0/develop/managing-users-and-roles-with-apis/
[2]https://is.docs.wso2.com/en/5.9.0/develop/managing-users-and-roles-with-apis/#getuserclaimvalues
Affected Component
IntegrationStudio
Version
8.2.0
Environment Details (with versions)
No response
Relevant Log Output
No response
Related Issues
No response
Suggested Labels
No response
The text was updated successfully, but these errors were encountered: