- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for casa (0.17 sec)
-
docs/pt/docs/tutorial/body-nested-models.md
Sem ter que saber de antemão quais são os nomes de campos/atributos válidos (como seria o caso dos modelos Pydantic). Isso seria útil se você deseja receber chaves que ainda não conhece. --- Outro caso útil é quando você deseja ter chaves de outro tipo, por exemplo, `int`. É isso que vamos ver aqui. Neste caso, você aceitaria qualquer `dict`, desde que tenha chaves` int` com valores `float`:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 7.4K bytes - Viewed (0) -
docs/en/docs/tutorial/body-nested-models.md
This way, you don't have to know beforehand what the valid field/attribute names are (as would be the case with Pydantic models). This would be useful if you want to receive keys that you don't already know. --- Another useful case is when you want to have keys of another type (e.g., `int`). That's what we are going to see here. In this case, you would accept any `dict` as long as it has `int` keys with `float` values:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.5K bytes - Viewed (0)