]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
✏️ Fix validation parameter name in docs, from `regex` to `pattern` (#10085)
authorPablo Dorrío Vázquez <64154120+pablodorrio@users.noreply.github.com>
Sat, 2 Sep 2023 17:02:26 +0000 (19:02 +0200)
committerGitHub <noreply@github.com>
Sat, 2 Sep 2023 17:02:26 +0000 (19:02 +0200)
docs/en/docs/tutorial/query-params-str-validations.md

index f87adddcb2ddcc0ddd10cff40ee79bd9ed644912..5d1c08adde61128d39e6c9de5eff70c2f61adbee 100644 (file)
@@ -932,7 +932,7 @@ Validations specific for strings:
 
 * `min_length`
 * `max_length`
-* `regex`
+* `pattern`
 
 In these examples you saw how to declare validations for `str` values.