-
Notifications
You must be signed in to change notification settings - Fork 753
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]: Handle intersecting and differencing fields of the XML nodes with same name #41310
Labels
Team/DevTools
Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs )
Type/Improvement
Milestone
Comments
AzeemMuzammil
added
the
Team/DevTools
Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs )
label
Aug 29, 2023
ballerina-bot
added
the
needTriage
The issue has to be inspected and labeled manually
label
Aug 29, 2023
AzeemMuzammil
removed
the
needTriage
The issue has to be inspected and labeled manually
label
Aug 29, 2023
Please check the above xml. Created record containing a field for |
13 tasks
Please consider following case. <Rec2>
<Rec1>
<i>144</i>
<s>s1</s>
<!-- <Rec1>
<i>144</i>
<s>s1</s>
</Rec1> -->
<Rec1>
<i>144</i>
<s>s1</s>
<Rec1>
<i>144</i>
<s>s1</s>
<Rec1>
<i>144</i>
<s>s1</s>
</Rec1>
<Rec1>
<i>144</i>
<s>s1</s>
</Rec1>
</Rec1>
</Rec1>
</Rec1>
</Rec2> This xml generates the records as follows. type Rec1 record {
int i;
string s;
Rec1 Rec1;
};
type Rec2 record {
Rec1 Rec1;
}; IMO there are two issues here.
If you uncomment the commented lines, the array will be generated. |
AzeemMuzammil
moved this from Planned for Sprint
to PR Sent
in Ballerina Team Main Board
Oct 31, 2023
Merged
13 tasks
github-project-automation
bot
moved this from PR Sent
to Done
in Ballerina Team Main Board
Jan 10, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Team/DevTools
Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs )
Type/Improvement
Description
When there are two XML nodes with the same name present, those two nodes should be converted into one Ballerina record, and the intersecting and differencing fields in those nodes should also be handled as below,
For this XML, Ballerina Record should look like,
Describe your problem(s)
No response
Describe your solution(s)
No response
Related area
-> Other Area
Related issue(s) (optional)
#41180
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: