- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for init (0.14 sec)
-
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 May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 7.7K 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 May 05 07:19:11 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 May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.4K 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 May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.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 May 05 07:19:11 GMT 2024 - Last Modified: Mon Apr 01 05:35:40 GMT 2024 - 7.6K bytes - Viewed (0)