Thanks to visit codestin.com
Credit goes to github.com

Skip to content

✨ Update OpenAPI models, supporting recursive models and extensions#3628

Merged
tiangolo merged 3 commits into
masterfrom
update-openapi-models
Jul 29, 2021
Merged

✨ Update OpenAPI models, supporting recursive models and extensions#3628
tiangolo merged 3 commits into
masterfrom
update-openapi-models

Conversation

@tiangolo

@tiangolo tiangolo commented Jul 29, 2021

Copy link
Copy Markdown
Member

✨ Update OpenAPI models, supporting recursive models and extensions

This updates all the models that are allowed to have OpenAPI Specification Extensions.

It also updates the models to use recursive models when necessary instead of the previous workaround of double models. The previous version/current of the models was made when Pydantic didn't have support for recursive models, long before Pydantic versions 1.x. But as in now supports them and FastAPI already requires a recent version of Pydantic, these models can be updated. 🚀

@codecov

codecov Bot commented Jul 29, 2021

Copy link
Copy Markdown

Codecov Report

Merging #3628 (2bb1326) into master (e726b7b) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master     #3628   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          408       408           
  Lines        10196     10229   +33     
=========================================
+ Hits         10196     10229   +33     
Impacted Files Coverage Δ
fastapi/openapi/models.py 100.00% <100.00%> (ø)

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 e726b7b...2bb1326. Read the comment docs.

@github-actions github-actions Bot temporarily deployed to commit July 29, 2021 20:49 Inactive
@tiangolo tiangolo enabled auto-merge (squash) July 29, 2021 20:53
@github-actions github-actions Bot temporarily deployed to commit July 29, 2021 20:55 Inactive
@github-actions

github-actions Bot commented Jul 29, 2021

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot temporarily deployed to commit July 29, 2021 20:59 Inactive
@tiangolo tiangolo merged commit 97fa743 into master Jul 29, 2021
@tiangolo tiangolo deleted the update-openapi-models branch July 29, 2021 20:59
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