Browse Source

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

pull/12159/head
Vaibhav 7 months ago
committed by GitHub
parent
commit
b60d36e753
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      fastapi/params.py

2
fastapi/params.py

@ -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…
Cancel
Save