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

Fix clone field implementation to handle sub-models #889

Merged
merged 1 commit into from
Jan 18, 2020

Conversation

tiangolo
Copy link
Member

🐛 Fix clone field implementation to handle sub-models including tests.

This should fix / related to #847 #800

@codecov
Copy link

codecov bot commented Jan 18, 2020

Codecov Report

Merging #889 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #889   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files         292    293    +1     
  Lines        7665   7692   +27     
=====================================
+ Hits         7665   7692   +27
Impacted Files Coverage Δ
tests/test_filter_pydantic_sub_model.py 100% <100%> (ø)
fastapi/utils.py 100% <100%> (ø) ⬆️

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 7cea84b...381b175. Read the comment docs.

@tiangolo tiangolo merged commit 75a07f2 into master Jan 18, 2020
@tiangolo tiangolo deleted the fix-cloned-field branch January 18, 2020 17:03
deuce2367 added a commit to deuce2367/fastapi that referenced this pull request Jan 20, 2020
…orators

- create_model() is now called using a __base__ parameter vs. a __config__ parameter
- isinstance comparisons now work as expected
- unit test created for fastapi#889 still passes as before
deuce2367 added a commit to deuce2367/fastapi that referenced this pull request Jan 21, 2020
…orators

- create_model() is now called using a __base__ parameter vs. a __config__ parameter
- isinstance comparisons now work as expected
- unit test created for fastapi#889 still passes as before
- apply black formatting
deuce2367 added a commit to deuce2367/fastapi that referenced this pull request Jan 21, 2020
…corators

    - create_model() is now called using a __base__ parameter vs. a __config__ parameter
    - isinstance comparisons now work as expected
    - unit test created for fastapi#889 still passes as before
    - apply black formatting
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.

None yet

1 participant