8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec25f60 commit 161a12aCopy full SHA for 161a12a
changes/1396-lmcnearney.md
@@ -0,0 +1 @@
1
+Update constr regex example to include start and end lines
docs/examples/types_constrained.py
@@ -20,7 +20,7 @@ class Model(BaseModel):
20
strip_bytes: conbytes(strip_whitespace=True)
21
22
short_str: constr(min_length=2, max_length=10)
23
- regex_str: constr(regex='apple (pie|tart|sandwich)')
+ regex_str: constr(regex='^apple (pie|tart|sandwich)$')
24
strip_str: constr(strip_whitespace=True)
25
26
big_int: conint(gt=1000, lt=1024)
0 commit comments