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

Throw DataFormatException with polymorphic item without .ofType() function #6721

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bratwurzt
Copy link

Added error message: "Unexpected end of stream (expected .ofType() function after polymorphic item <item_name>)" in case of polymorphic fields without specifying the wanted type.

Closes #6720

…m (expected .ofType() function after polymorphic item <item_name>)" in case of polymorphic fields without specifying the wanted type
@jamesagnew
Copy link
Collaborator

Hi @bratwurzt , thanks for the contribution! Would you be able to add a test which exercises the new behaviour?

Copy link

codecov bot commented Feb 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.58%. Comparing base (78537ba) to head (03ac1bd).
Report is 3 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6721      +/-   ##
============================================
- Coverage     83.58%   83.58%   -0.01%     
- Complexity    28650    28656       +6     
============================================
  Files          1798     1798              
  Lines        111363   111378      +15     
  Branches      13982    13984       +2     
============================================
+ Hits          93080    93092      +12     
- Misses        12280    12284       +4     
+ Partials       6003     6002       -1     

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

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.

NullPointerException when there's not next token in HfqlFhirPathParser.determineDatatypeForPath
2 participants