[PR #35] [MERGED] Update dependency fastapi to ^0.78.0 #33

Closed
opened 2026-09-02 13:12:20 +02:00 by TheLovinator · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/TheLovinator1/twitter-image-collage-maker/pull/35
Author: @renovate[bot]
Created: 5/14/2022
Status: Merged
Merged: 5/19/2022
Merged by: @TheLovinator1

Base: masterHead: renovate/fastapi-0.x


📝 Commits (1)

  • 043a190 Update dependency fastapi to ^0.78.0

📊 Changes

2 files changed (+6 additions, -6 deletions)

View changed files

📝 poetry.lock (+5 -5)
📝 pyproject.toml (+1 -1)

📄 Description

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
fastapi ^0.77.0 -> ^0.78.0 age adoption passing confidence

Release Notes

tiangolo/fastapi

v0.78.0

Compare Source

Features
  • Add support for omitting ... as default value when declaring required parameters with:

  • Path()

  • Query()

  • Header()

  • Cookie()

  • Body()

  • Form()

  • File()

New docs at Tutorial - Query Parameters and String Validations - Make it required. PR #​4906 by @​tiangolo.

Up to now, declaring a required parameter while adding additional validation or metadata needed using ... (Ellipsis).

For example:

from fastapi import Cookie, FastAPI, Header, Path, Query

app = FastAPI()

@​app.get("/items/{item_id}")
def main(
    item_id: int = Path(default=..., gt=0),
    query: str = Query(default=..., max_length=10),
    session: str = Cookie(default=..., min_length=3),
    x_trace: str = Header(default=..., title="Tracing header"),
):
    return {"message": "Hello World"}

...all these parameters are required because the default value is ... (Ellipsis).

But now it's possible and supported to just omit the default value, as would be done with Pydantic fields, and the parameters would still be required.

For example, this is now supported:

from fastapi import Cookie, FastAPI, Header, Path, Query

app = FastAPI()

@​app.get("/items/{item_id}")
def main(
    item_id: int = Path(gt=0),
    query: str = Query(max_length=10),
    session: str = Cookie(min_length=3),
    x_trace: str = Header(title="Tracing header"),
):
    return {"message": "Hello World"}

To declare parameters as optional (not required), you can set a default value as always, for example using None:

from typing import Union
from fastapi import Cookie, FastAPI, Header, Path, Query

app = FastAPI()

@​app.get("/items/{item_id}")
def main(
    item_id: int = Path(gt=0),
    query: Union[str, None] = Query(default=None, max_length=10),
    session: Union[str, None] = Cookie(default=None, min_length=3),
    x_trace: Union[str, None] = Header(default=None, title="Tracing header"),
):
    return {"message": "Hello World"}
Docs
Translations
Internal

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by WhiteSource Renovate. View repository job log here.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/TheLovinator1/twitter-image-collage-maker/pull/35 **Author:** [@renovate[bot]](https://github.com/apps/renovate) **Created:** 5/14/2022 **Status:** ✅ Merged **Merged:** 5/19/2022 **Merged by:** [@TheLovinator1](https://github.com/TheLovinator1) **Base:** `master` ← **Head:** `renovate/fastapi-0.x` --- ### 📝 Commits (1) - [`043a190`](https://github.com/TheLovinator1/twitter-image-collage-maker/commit/043a19048d8d9ae8885647af4269934c7d1878af) Update dependency fastapi to ^0.78.0 ### 📊 Changes **2 files changed** (+6 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `poetry.lock` (+5 -5) 📝 `pyproject.toml` (+1 -1) </details> ### 📄 Description [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [fastapi](https://togithub.com/tiangolo/fastapi) | `^0.77.0` -> `^0.78.0` | [![age](https://badges.renovateapi.com/packages/pypi/fastapi/0.78.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/fastapi/0.78.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/fastapi/0.78.0/compatibility-slim/0.77.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/fastapi/0.78.0/confidence-slim/0.77.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>tiangolo/fastapi</summary> ### [`v0.78.0`](https://togithub.com/tiangolo/fastapi/releases/0.78.0) [Compare Source](https://togithub.com/tiangolo/fastapi/compare/0.77.1...0.78.0) ##### Features - ✨ Add support for omitting `...` as default value when declaring required parameters with: - `Path()` - `Query()` - `Header()` - `Cookie()` - `Body()` - `Form()` - `File()` New docs at [Tutorial - Query Parameters and String Validations - Make it required](https://fastapi.tiangolo.com/tutorial/query-params-str-validations/#make-it-required). PR [#&#8203;4906](https://togithub.com/tiangolo/fastapi/pull/4906) by [@&#8203;tiangolo](https://togithub.com/tiangolo). Up to now, declaring a required parameter while adding additional validation or metadata needed using `...` (Ellipsis). For example: ```Python from fastapi import Cookie, FastAPI, Header, Path, Query app = FastAPI() @&#8203;app.get("/items/{item_id}") def main( item_id: int = Path(default=..., gt=0), query: str = Query(default=..., max_length=10), session: str = Cookie(default=..., min_length=3), x_trace: str = Header(default=..., title="Tracing header"), ): return {"message": "Hello World"} ``` ...all these parameters are required because the default value is `...` (Ellipsis). But now it's possible and supported to just omit the default value, as would be done with Pydantic fields, and the parameters would still be required. ✨ For example, this is now supported: ```Python from fastapi import Cookie, FastAPI, Header, Path, Query app = FastAPI() @&#8203;app.get("/items/{item_id}") def main( item_id: int = Path(gt=0), query: str = Query(max_length=10), session: str = Cookie(min_length=3), x_trace: str = Header(title="Tracing header"), ): return {"message": "Hello World"} ``` To declare parameters as optional (not required), you can set a default value as always, for example using `None`: ```Python from typing import Union from fastapi import Cookie, FastAPI, Header, Path, Query app = FastAPI() @&#8203;app.get("/items/{item_id}") def main( item_id: int = Path(gt=0), query: Union[str, None] = Query(default=None, max_length=10), session: Union[str, None] = Cookie(default=None, min_length=3), x_trace: Union[str, None] = Header(default=None, title="Tracing header"), ): return {"message": "Hello World"} ``` ##### Docs - 📝 Add docs recommending `Union` over `Optional` and migrate source examples. New docs at [Python Types Intro - Using `Union` or `Optional`](https://fastapi.tiangolo.com/python-types/#using-union-or-optional). PR [#&#8203;4908](https://togithub.com/tiangolo/fastapi/pull/4908) by [@&#8203;tiangolo](https://togithub.com/tiangolo). - 🎨 Fix default value as set in tutorial for Path Operations Advanced Configurations. PR [#&#8203;4899](https://togithub.com/tiangolo/fastapi/pull/4899) by [@&#8203;tiangolo](https://togithub.com/tiangolo). - 📝 Add documentation for redefined path operations. PR [#&#8203;4864](https://togithub.com/tiangolo/fastapi/pull/4864) by [@&#8203;madkinsz](https://togithub.com/madkinsz). - 📝 Updates links for Celery documentation. PR [#&#8203;4736](https://togithub.com/tiangolo/fastapi/pull/4736) by [@&#8203;sammyzord](https://togithub.com/sammyzord). - ✏ Fix example code with sets in tutorial for body nested models. PR [#&#8203;3030](https://togithub.com/tiangolo/fastapi/pull/3030) by [@&#8203;hitrust](https://togithub.com/hitrust). - ✏ Fix links to Pydantic docs. PR [#&#8203;4670](https://togithub.com/tiangolo/fastapi/pull/4670) by [@&#8203;kinuax](https://togithub.com/kinuax). - 📝 Update docs about Swagger UI self-hosting with newer source links. PR [#&#8203;4813](https://togithub.com/tiangolo/fastapi/pull/4813) by [@&#8203;Kastakin](https://togithub.com/Kastakin). - 📝 Add link to external article: Building the Poll App From Django Tutorial With FastAPI And React. PR [#&#8203;4778](https://togithub.com/tiangolo/fastapi/pull/4778) by [@&#8203;jbrocher](https://togithub.com/jbrocher). - 📝 Add OpenAPI warning to "Body - Fields" docs with extra schema extensions. PR [#&#8203;4846](https://togithub.com/tiangolo/fastapi/pull/4846) by [@&#8203;ml-evs](https://togithub.com/ml-evs). ##### Translations - 🌐 Fix code examples in Japanese translation for `docs/ja/docs/tutorial/testing.md`. PR [#&#8203;4623](https://togithub.com/tiangolo/fastapi/pull/4623) by [@&#8203;hirotoKirimaru](https://togithub.com/hirotoKirimaru). ##### Internal - ♻ Refactor dict value extraction to minimize key lookups `fastapi/utils.py`. PR [#&#8203;3139](https://togithub.com/tiangolo/fastapi/pull/3139) by [@&#8203;ShahriyarR](https://togithub.com/ShahriyarR). - ✅ Add tests for required nonable parameters and body fields. PR [#&#8203;4907](https://togithub.com/tiangolo/fastapi/pull/4907) by [@&#8203;tiangolo](https://togithub.com/tiangolo). - 👷 Fix installing Material for MkDocs Insiders in CI. PR [#&#8203;4897](https://togithub.com/tiangolo/fastapi/pull/4897) by [@&#8203;tiangolo](https://togithub.com/tiangolo). - 👷 Add pre-commit CI instead of custom GitHub Action. PR [#&#8203;4896](https://togithub.com/tiangolo/fastapi/pull/4896) by [@&#8203;tiangolo](https://togithub.com/tiangolo). - 👷 Add pre-commit GitHub Action workflow. PR [#&#8203;4895](https://togithub.com/tiangolo/fastapi/pull/4895) by [@&#8203;tiangolo](https://togithub.com/tiangolo). - 📝 Add dark mode auto switch to docs based on OS preference. PR [#&#8203;4869](https://togithub.com/tiangolo/fastapi/pull/4869) by [@&#8203;ComicShrimp](https://togithub.com/ComicShrimp). - 🔥 Remove un-used old pending tests, already covered in other places. PR [#&#8203;4891](https://togithub.com/tiangolo/fastapi/pull/4891) by [@&#8203;tiangolo](https://togithub.com/tiangolo). - 🔧 Add Python formatting hooks to pre-commit. PR [#&#8203;4890](https://togithub.com/tiangolo/fastapi/pull/4890) by [@&#8203;tiangolo](https://togithub.com/tiangolo). - 🔧 Add pre-commit with first config and first formatting pass. PR [#&#8203;4888](https://togithub.com/tiangolo/fastapi/pull/4888) by [@&#8203;tiangolo](https://togithub.com/tiangolo). - 👷 Disable CI installing Material for MkDocs in forks. PR [#&#8203;4410](https://togithub.com/tiangolo/fastapi/pull/4410) by [@&#8203;dolfinus](https://togithub.com/dolfinus). </details> --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/TheLovinator1/twitter-image-collage-maker). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
TheLovinator 2026-09-02 13:12:20 +02:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TheLovinator/twitter-image-collage-maker#33
No description provided.