mirror of https://github.com/tiangolo/fastapi.git
✏️ Fix typo in `fastapi/params.py` (#12143)
This commit is contained in:
parent
bde12faea2
commit
b60d36e753
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue