Skip to content

Create oneOf/anyOf unmarshaller using unmarshallers factory #425

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

Merged
merged 1 commit into from
Sep 26, 2022
Merged

Create oneOf/anyOf unmarshaller using unmarshallers factory #425

merged 1 commit into from
Sep 26, 2022

Conversation

sisp
Copy link
Contributor

@sisp sisp commented Sep 26, 2022

I've refactored the way how unmarshallers for oneOf/anyOf sub-schemas are created by using the SchemaUnmarshallersFactory instead of instantiating an ObjectUnmarshaller manually.

I believe this is what you were hinting at in https://github.com/p1c2u/openapi-core/pull/354/files#r979402096.

@sisp sisp mentioned this pull request Sep 26, 2022
@codecov
Copy link

codecov bot commented Sep 26, 2022

Codecov Report

Merging #425 (06c3d02) into master (df4bbfe) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #425   +/-   ##
=======================================
  Coverage   92.84%   92.84%           
=======================================
  Files          94       94           
  Lines        2347     2348    +1     
  Branches      297      297           
=======================================
+ Hits         2179     2180    +1     
  Misses        128      128           
  Partials       40       40           
Impacted Files Coverage Δ
...penapi_core/unmarshalling/schemas/unmarshallers.py 88.83% <100.00%> (+0.05%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Collaborator

@p1c2u p1c2u left a comment

Choose a reason for hiding this comment

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

LGTM

@p1c2u p1c2u merged commit 14f0a5b into python-openapi:master Sep 26, 2022
@sisp sisp deleted the refactor/oneof-anyof-unmarshaller branch September 26, 2022 09:53
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