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

Support options for XML conversions and Refactor apis #6

Merged
merged 12 commits into from
Mar 26, 2024

Conversation

prakanth97
Copy link
Contributor

Purpose

Fixes: #6073

Examples

Checklist

  • Linked to an issue
  • Updated the changelog
  • Added tests
  • Updated the spec
  • Checked native-image compatibility

@prakanth97
Copy link
Contributor Author

Merge this after #5

Copy link

codecov bot commented Feb 28, 2024

Codecov Report

Attention: Patch coverage is 59.84848% with 53 lines in your changes are missing coverage. Please review.

Project coverage is 77.92%. Comparing base (0d7066b) to head (ccd9687).
Report is 6 commits behind head on main.

Files Patch % Lines
ballerina/xml_api.bal 0.00% 40 Missing ⚠️
...o/ballerina/stdlib/data/xmldata/xml/XmlParser.java 85.71% 3 Missing and 2 partials ⚠️
...allerina/stdlib/data/xmldata/xml/XmlTraversal.java 84.00% 2 Missing and 2 partials ⚠️
...ballerina/stdlib/data/xmldata/utils/DataUtils.java 88.88% 1 Missing and 1 partial ⚠️
...a/io/ballerina/stdlib/data/xmldata/xml/Native.java 66.66% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main       #6      +/-   ##
============================================
- Coverage     78.25%   77.92%   -0.34%     
- Complexity      449      459      +10     
============================================
  Files            21       21              
  Lines          2005     2079      +74     
  Branches        440      458      +18     
============================================
+ Hits           1569     1620      +51     
- Misses          328      350      +22     
- Partials        108      109       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@prakanth97 prakanth97 marked this pull request as ready for review February 28, 2024 11:11
@prakanth97 prakanth97 requested a review from hasithaa as a code owner February 28, 2024 11:11
@prakanth97 prakanth97 changed the title Support options for XML conversions Support options for XML conversions and Refactor apis Mar 22, 2024
`;
Employee|error e = parseAsType(xmlVal1, sOptions3);
test:assertTrue(e is error);
test:assertEquals((<error>e).message(), "undefined field 'age' in record 'data.xmldata:Employee'");
Copy link
Contributor

@hasithaa hasithaa Mar 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor formatting issue. check other places too.

Copy link
Contributor Author

@prakanth97 prakanth97 Mar 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated ballerina formatting issues 08b2841

When calling the formatter, This line remain unchanged. Are you referring space between cast-expr and the identifier e?

@prakanth97 prakanth97 requested a review from hasithaa March 22, 2024 09:29
@hasithaa hasithaa merged commit 165ff1f into ballerina-platform:main Mar 26, 2024
5 checks passed
prakanth97 added a commit to prakanth97/module-ballerina-data-xmldata that referenced this pull request Aug 14, 2024
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.

Support Options for formXmlStringWithType and fromXmlWithType
3 participants