- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for init (0.15 sec)
-
docs/de/docs/tutorial/path-params.md
```JSON { "detail": [ { "type": "int_parsing", "loc": [ "path", "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" } ] } ``` Der Pfad-Parameter `item_id` hatte den Wert `"foo"`, was kein `int` ist.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Mar 30 20:28:59 GMT 2024 - 10.3K bytes - Viewed (0) -
docs/em/docs/tutorial/path-params.md
], "msg": "value is not a valid integer", "type": "type_error.integer" } ] } ``` ↩️ ➡ 🔢 `item_id` ✔️ 💲 `"foo"`, ❔ 🚫 `int`. 🎏 ❌ 🔜 😑 🚥 👆 🚚 `float` ↩️ `int`,: <a href="http://127.0.0.1:8000/items/4.2" class="external-link" target="_blank">http://127.0.0.1:8000/items/4.2</a> !!! check , ⏮️ 🎏 🐍 🆎 📄, **FastAPI** 🤝 👆 💽 🔬.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 7.7K bytes - Viewed (0) -
docs/ja/docs/tutorial/path-params.md
"msg": "value is not a valid integer", "type": "type_error.integer" } ] } ``` これは、パスパラメータ `item_id` が `int` ではない値 `"foo"` だからです。 <a href="http://127.0.0.1:8000/items/4.2" class="external-link" target="_blank">http://127.0.0.1:8000/items/4.2</a> で見られるように、intのかわりに `float` が与えられた場合にも同様なエラーが表示されます。 !!! check "確認" したがって、Pythonの型宣言を使用することで、**FastAPI**はデータのバリデーションを行います。
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 10.6K bytes - Viewed (0) -
docs/tr/docs/tutorial/path-params.md
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 10.8K bytes - Viewed (0) -
docs/pt/docs/tutorial/path-params.md
"type": "type_error.integer" } ] } ``` devido ao parâmetro da rota `item_id` ter um valor `"foo"`, que não é um `int`. O mesmo erro apareceria se você tivesse fornecido um `float` ao invés de um `int`, como em: <a href="http://127.0.0.1:8000/items/4.2" class="external-link" target="_blank">http://127.0.0.1:8000/items/4.2</a> !!! check "Verifique"
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 9.7K bytes - Viewed (0) -
docs/es/docs/tutorial/path-params.md
"type": "type_error.integer" } ] } ``` debido a que el parámetro de path `item_id` tenía el valor `"foo"`, que no es un `int`. El mismo error aparecería si pasaras un `float` en vez de un `int` como en: <a href="http://127.0.0.1:8000/items/4.2" class="external-link" target="_blank">http://127.0.0.1:8000/items/4.2</a> !!! check "Revisa"
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.4K bytes - Viewed (0) -
docs/ko/docs/tutorial/path-params.md
"item_id" ], "msg": "value is not a valid integer", "type": "type_error.integer" } ] } ``` 경로 매개변수 `item_id`는 `int`가 아닌 `"foo"` 값이기 때문입니다. `int`가 아닌 `float`을 전달하는 경우에도 동일한 오류가 나타납니다: <a href="http://127.0.0.1:8000/items/4.2" class="external-link" target="_blank">http://127.0.0.1:8000/items/4.2</a> !!! check "확인"
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.8K bytes - Viewed (0) -
docs/en/docs/tutorial/path-params.md
```JSON { "detail": [ { "type": "int_parsing", "loc": [ "path", "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" } ] } ``` because the path parameter `item_id` had a value of `"foo"`, which is not an `int`.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.1K bytes - Viewed (0) -
docs/ru/docs/tutorial/path-params.md
"type": "type_error.integer" } ] } ``` из-за того, что параметр пути `item_id` имеет значение `"foo"`, которое не является типом `int`. Та же ошибка возникнет, если вместо `int` передать `float` , например: <a href="http://127.0.0.1:8000/items/4.2" class="external-link" target="_blank">http://127.0.0.1:8000/items/4.2</a> !!! check "Заметка"
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 14.1K bytes - Viewed (0) -
docs/zh/docs/tutorial/path-params.md
``` 本例把 `item_id` 的类型声明为 `int`。 !!! check "检查" 类型声明将为函数提供错误检查、代码补全等编辑器支持。 ## 数据<abbr title="也称为:序列化、解析">转换</abbr> 运行示例并访问 <a href="http://127.0.0.1:8000/items/3" class="external-link" target="_blank">http://127.0.0.1:8000/items/3</a>,返回的响应如下: ```JSON {"item_id":3} ``` !!! check "检查" 注意,函数接收并返回的值是 `3`( `int`),不是 `"3"`(`str`)。
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Mon Apr 01 05:35:40 GMT 2024 - 7.6K bytes - Viewed (0)