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

Skip to content

♻️ Simplify Pydantic configs in OpenAPI models in fastapi/openapi/models.py#10886

Merged
tiangolo merged 4 commits into
fastapi:masterfrom
JoeTanto2:abstract-model-config
Apr 18, 2024
Merged

♻️ Simplify Pydantic configs in OpenAPI models in fastapi/openapi/models.py#10886
tiangolo merged 4 commits into
fastapi:masterfrom
JoeTanto2:abstract-model-config

Conversation

@JoeTanto2

Copy link
Copy Markdown
Contributor

Abstracted conditional class config to parent class to avoid repetitive checks.

@tiangolo tiangolo changed the title Abstracted conditional class config to parent class ♻️ Simplify Pydantic configs in OpenAPI models in fastapi/openapi/models.py Jan 13, 2024
@tiangolo

Copy link
Copy Markdown
Member

Good idea, thanks! 🚀

@tiangolo tiangolo enabled auto-merge (squash) April 18, 2024 22:44
@tiangolo tiangolo merged commit 74cc33d into fastapi:master Apr 18, 2024
hsuanchi pushed a commit to hsuanchi/fastapi that referenced this pull request May 26, 2024
…dels.py` (fastapi#10886)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Sebastián Ramírez <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants