✏️ Fix typo in `fastapi/params.py` (#12143)

This commit is contained in:
Vaibhav 2024-09-06 23:36:20 +05:30 committed by GitHub
parent bde12faea2
commit b60d36e753
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -556,7 +556,7 @@ class Body(FieldInfo):
kwargs["examples"] = examples
if regex is not None:
warnings.warn(
"`regex` has been depreacated, please use `pattern` instead",
"`regex` has been deprecated, please use `pattern` instead",
category=DeprecationWarning,
stacklevel=4,
)