Skip to content

Fix clone field implementation to handle sub-models#889

Merged
tiangolo merged 1 commit intomasterfrom
fix-cloned-field
Jan 18, 2020
Merged

Fix clone field implementation to handle sub-models#889
tiangolo merged 1 commit intomasterfrom
fix-cloned-field

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.

1 participant