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

Remove some limitation from the output of toRecord() #418

Merged
merged 22 commits into from
Apr 18, 2022

Conversation

kalaiyarasiganeshalingam
Copy link
Contributor

@kalaiyarasiganeshalingam kalaiyarasiganeshalingam commented Mar 30, 2022

Purpose

The following limitation remove from the output of toRecord()

  • Earlier name prefix separated by _ instead of :. Now, this pr has removed that and allowed users to use ":".
  • After this PR is merged, the User can create the closed record with the field as \#content.

Related to ballerina-platform/ballerina-library#2810

Examples

Checklist

  • Linked to an issue
  • Updated the changelog
  • Added tests
  • Updated the spec

@codecov
Copy link

codecov bot commented Mar 30, 2022

Codecov Report

Merging #418 (1f2c6c3) into master (4859062) will decrease coverage by 0.22%.
The diff coverage is 94.87%.

@@             Coverage Diff              @@
##             master     #418      +/-   ##
============================================
- Coverage     90.58%   90.35%   -0.23%     
  Complexity       82       82              
============================================
  Files             7        7              
  Lines           361      363       +2     
  Branches        134      133       -1     
============================================
+ Hits            327      328       +1     
- Misses           21       22       +1     
  Partials         13       13              
Impacted Files Coverage Δ
ballerina/xmldata.bal 96.72% <93.54%> (-0.78%) ⬇️
...in/java/io/ballerina/stdlib/xmldata/XmlToJson.java 87.38% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4859062...1f2c6c3. Read the comment docs.

JsonOptions newOptions = {
arrayEntryTag: options.arrayEntryTag == "" ? "item" : options.arrayEntryTag,
attributePrefix: options.attributePrefix == "" ? "@" : options.attributePrefix
};
Copy link
Member

Choose a reason for hiding this comment

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

Do we need this? why can't we just use input options

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed.

@daneshk
Copy link
Member

daneshk commented Apr 15, 2022

@kalaiyarasiganeshalingam please update the changelog

@kalaiyarasiganeshalingam
Copy link
Contributor Author

@kalaiyarasiganeshalingam please update the changelog

Updated.

@kalaiyarasiganeshalingam kalaiyarasiganeshalingam merged commit e459ee7 into master Apr 18, 2022
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.

2 participants