]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
✏️ Fix typo in `fastapi/params.py` (#12143)
authorVaibhav <35167042+surreal30@users.noreply.github.com>
Fri, 6 Sep 2024 18:06:20 +0000 (23:36 +0530)
committerGitHub <noreply@github.com>
Fri, 6 Sep 2024 18:06:20 +0000 (20:06 +0200)
fastapi/params.py

index 3dfa5a1a381e551f3b70874f6ce5ba81d9b66218..90ca7cb010e6c24dd689a5cf2119eba93d88446c 100644 (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,
             )