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

model - discriminated unions with parent properties #149

Merged
merged 1 commit into from
Sep 3, 2023

Conversation

commonism
Copy link
Owner

apply parent properties first, so children can overwrite the discriminator with their Literal value

apply parent properties first, so children can overwrite the discriminator
with their Literal value
@codecov
Copy link

codecov bot commented Sep 3, 2023

Codecov Report

Merging #149 (6959248) into master (142b64a) will increase coverage by 0.08%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #149      +/-   ##
==========================================
+ Coverage   94.38%   94.47%   +0.08%     
==========================================
  Files          83       83              
  Lines        6180     6187       +7     
==========================================
+ Hits         5833     5845      +12     
+ Misses        347      342       -5     
Flag Coverage Δ
unittests 94.47% <100.00%> (+0.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
aiopenapi3/model.py 93.29% <100.00%> (ø)
tests/conftest.py 100.00% <100.00%> (ø)
tests/schema_test.py 100.00% <100.00%> (ø)

... and 3 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@commonism commonism merged commit 47ace37 into master Sep 3, 2023
12 checks passed
@commonism commonism deleted the discriminated_union_merging branch September 3, 2023 10:29
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.

1 participant