Skip to content

Commit 7cfe576

Browse files
committed
fixed failing tests
1 parent ac4145a commit 7cfe576

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_routing/test_multi_body_errors.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ def save_item_no_body(item: List[Item2]):
8888
"age": {
8989
"anyOf": [
9090
{"type": "number", "exclusiveMinimum": 0.0},
91-
{"type": "string"},
91+
{
92+
"type": "string",
93+
"pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
94+
},
9295
],
9396
"title": "Age",
9497
},

0 commit comments

Comments
 (0)