Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd509e8d

Browse files
docs(path-params): fixed returned message of invalid type parsing
1 parent942ee69 commitd509e8d

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

‎docs/en/docs/tutorial/path-params.md‎

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,18 @@ But if you go to the browser at <a href="http://127.0.0.1:8000/items/foo" class=
4646

4747
```JSON
4848
{
49-
"detail": [
50-
{
51-
"loc": [
52-
"path",
53-
"item_id"
54-
],
55-
"msg":"value is not a valid integer",
56-
"type":"type_error.integer"
57-
}
58-
]
49+
"detail": [
50+
{
51+
"type":"int_parsing",
52+
"loc": [
53+
"path",
54+
"item_id"
55+
],
56+
"msg":"Input should be a valid integer, unable to parse string as an integer",
57+
"input":"foo",
58+
"url":"https://errors.pydantic.dev/2.1/v/int_parsing"
59+
}
60+
]
5961
}
6062
```
6163

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp