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

feat: Disambiguate choices #946

Merged
merged 7 commits into from Mar 2, 2024
Merged

feat: Disambiguate choices #946

merged 7 commits into from Mar 2, 2024

Conversation

tefra
Copy link
Owner

@tefra tefra commented Feb 18, 2024

📒 Description

Compound fields might contain elements with the same type, this makes it impossible to detect the the real qname during serialization. Currently we detect these cases and wrap values in a DerivedElement wrapper.

Let's see if it's possible to avoid the DerivedElement by generating dataclasses with dedicated name/namespace

Resolves #920

🔗 What I've Done

  • Introduce new handler to disambiguate choices
  • Underestimate wildcards :(

💬 Comments

A place to write any comments to the reviewer.

🛫 Checklist

Copy link

codecov bot commented Feb 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.97%. Comparing base (804e35a) to head (a83d132).

Additional details and impacted files
@@           Coverage Diff            @@
##             main     #946    +/-   ##
========================================
  Coverage   99.97%   99.97%            
========================================
  Files         109      110     +1     
  Lines        8761     8899   +138     
  Branches     2075     2116    +41     
========================================
+ Hits         8759     8897   +138     
  Misses          1        1            
  Partials        1        1            

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

@tefra tefra force-pushed the ambiguous-choices branch 2 times, most recently from 650120c to c4741d3 Compare March 2, 2024 16:41
Copy link

sonarcloud bot commented Mar 2, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@tefra tefra merged commit bda6150 into main Mar 2, 2024
14 checks passed
@tefra tefra deleted the ambiguous-choices branch March 2, 2024 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

types generated classes for xs:choice elements do not enable the user to tell which one was set
1 participant