mirror of
https://github.com/fastapi/fastapi.git
synced 2026-05-19 13:57:51 -04:00
📝 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:
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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`.
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user