Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Improvement]: (Usability) Data Services return responses not in an uniform manner #3661

Open
Bhashinee opened this issue Oct 8, 2024 · 0 comments

Comments

@Bhashinee
Copy link
Member

Description

  • When there are multiple rows for the select query result, DSS returns them as a json array (output mapping defined as an array).
  • Noticed a weird scenario when there is only one result for the query result, DSS returns a single object

Describe your problem(s)

This behaviour makes the life of integration developer hard. If we are to write a transformation for the DSS output, we need to first manually wrap the object inside an array and then have a static transformation.

Describe your solution(s)

Proposal: Single object also should come in an array so that the output is uniform.

Related issue(s) (optional)

Related issue: https://github.com/wso2-enterprise/wso2-mi-internal/issues/669
Product : WSO2MI 4.2.0
Update level : 56
Opened by : hasithah@wso2.com

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant