📝 Remove obsolete `url` field in error responses in docs (#13655)

Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com>
This commit is contained in:
Hotah Ma 2025-08-31 18:29:01 +08:00 committed by GitHub
parent ee2acd8abc
commit 0e5832aa6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 12 additions and 23 deletions

View File

@ -56,8 +56,7 @@ Wenn Sie aber im Browser <a href="http://127.0.0.1:8000/items/foo" class="extern
"item_id"
],
"msg": "Input should be a valid integer, unable to parse string as an integer",
"input": "foo",
"url": "https://errors.pydantic.dev/2.1/v/int_parsing"
"input": "foo"
}
]
}

View File

@ -149,8 +149,7 @@ http://127.0.0.1:8000/items/foo-item
"needy"
],
"msg": "Field required",
"input": null,
"url": "https://errors.pydantic.dev/2.1/v/missing"
"input": null
}
]
}

View File

@ -56,8 +56,7 @@ But if you go to the browser at <a href="http://127.0.0.1:8000/items/foo" class=
"item_id"
],
"msg": "Input should be a valid integer, unable to parse string as an integer",
"input": "foo",
"url": "https://errors.pydantic.dev/2.1/v/int_parsing"
"input": "foo"
}
]
}
@ -238,7 +237,7 @@ So, you can use it with:
/// tip
You could need the parameter to contain `/home/johndoe/myfile.txt`, with a leading slash (`/`).
You might need the parameter to contain `/home/johndoe/myfile.txt`, with a leading slash (`/`).
In that case, the URL would be: `/files//home/johndoe/myfile.txt`, with a double slash (`//`) between `files` and `home`.

View File

@ -150,8 +150,7 @@ http://127.0.0.1:8000/items/foo-item
"needy"
],
"msg": "Field required",
"input": null,
"url": "https://errors.pydantic.dev/2.1/v/missing"
"input": null
}
]
}

View File

@ -56,8 +56,7 @@ Pero si vas al navegador en <a href="http://127.0.0.1:8000/items/foo" class="ext
"item_id"
],
"msg": "Input should be a valid integer, unable to parse string as an integer",
"input": "foo",
"url": "https://errors.pydantic.dev/2.1/v/int_parsing"
"input": "foo"
}
]
}

View File

@ -147,8 +147,7 @@ http://127.0.0.1:8000/items/foo-item
"needy"
],
"msg": "Field required",
"input": null,
"url": "https://errors.pydantic.dev/2.1/v/missing"
"input": null
}
]
}

View File

@ -56,8 +56,7 @@ Tetapi jika di browser anda akses <a href="http://127.0.0.1:8000/items/foo" clas
"item_id"
],
"msg": "Input should be a valid integer, unable to parse string as an integer",
"input": "foo",
"url": "https://errors.pydantic.dev/2.1/v/int_parsing"
"input": "foo"
}
]
}

View File

@ -56,8 +56,7 @@ Eğer tarayıcınızda <a href="http://127.0.0.1:8000/items/foo" class="external
"item_id"
],
"msg": "Input should be a valid integer, unable to parse string as an integer",
"input": "foo",
"url": "https://errors.pydantic.dev/2.1/v/int_parsing"
"input": "foo"
}
]
}

View File

@ -150,8 +150,7 @@ http://127.0.0.1:8000/items/foo-item
"needy"
],
"msg": "Field required",
"input": null,
"url": "https://errors.pydantic.dev/2.1/v/missing"
"input": null
}
]
}

View File

@ -56,8 +56,7 @@
"item_id"
],
"msg": "Input should be a valid integer, unable to parse string as an integer",
"input": "foo",
"url": "https://errors.pydantic.dev/2.1/v/int_parsing"
"input": "foo"
}
]
}

View File

@ -151,8 +151,7 @@ http://127.0.0.1:8000/items/foo-item
"needy"
],
"msg": "Field required",
"input": null,
"url": "https://errors.pydantic.dev/2.1/v/missing"
"input": null
}
]
}