- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 157 for models2 (0.04 sec)
-
tests/query_test.go
var models2 [3]User if err := DB.Where("name in (?)", []string{"find"}).Find(&models2).Error; err != nil { t.Errorf("errors happened when query find with in clause: %v, length: %v", err, len(models2)) } else { for idx, user := range users { t.Run("FindWithInClause#"+strconv.Itoa(idx+1), func(t *testing.T) { CheckUser(t, models2[idx], user) }) } } // test smaller array var models3 [2]User
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Tue Jul 22 06:21:04 UTC 2025 - 51K bytes - Viewed (0) -
docs/en/docs/tutorial/extra-models.md
# Extra Models { #extra-models } Continuing with the previous example, it will be common to have more than one related model. This is especially the case for user models, because: * The **input model** needs to be able to have a password. * The **output model** should not have a password. * The **database model** would probably need to have a hashed password. /// dangerRegistered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 7.2K bytes - Viewed (0) -
docs/es/docs/tutorial/query-param-models.md
# Modelos de Parámetros Query Si tienes un grupo de **parámetros query** que están relacionados, puedes crear un **modelo de Pydantic** para declararlos. Esto te permitiría **reutilizar el modelo** en **múltiples lugares** y también declarar validaciones y metadatos para todos los parámetros de una vez. 😎 /// note | Nota Esto es compatible desde la versión `0.115.0` de FastAPI. 🤓 /// ## Parámetros Query con un Modelo Pydantic
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Dec 30 18:26:57 UTC 2024 - 2.2K bytes - Viewed (0) -
docs/es/docs/tutorial/request-form-models.md
## Revisa la Documentación Puedes verificarlo en la interfaz de documentación en `/docs`: <div class="screenshot"> <img src="/img/tutorial/request-form-models/image01.png"> </div> ## Prohibir Campos de Formulario Extra
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Dec 30 18:26:57 UTC 2024 - 2.3K bytes - Viewed (0) -
docs/es/docs/tutorial/header-param-models.md
# Modelos de Parámetros de Header Si tienes un grupo de **parámetros de header** relacionados, puedes crear un **modelo Pydantic** para declararlos. Esto te permitirá **reutilizar el modelo** en **múltiples lugares** y también declarar validaciones y metadatos para todos los parámetros al mismo tiempo. 😎 /// note | Nota Esto es compatible desde la versión `0.115.0` de FastAPI. 🤓 /// ## Parámetros de Header con un Modelo Pydantic
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Dec 30 18:26:57 UTC 2024 - 1.9K bytes - Viewed (0) -
docs/es/docs/tutorial/body-nested-models.md
## Modelos Anidados Cada atributo de un modelo Pydantic tiene un tipo. Pero ese tipo puede ser en sí mismo otro modelo Pydantic. Así que, puedes declarar "objetos" JSON anidados profundamente con nombres de atributos específicos, tipos y validaciones. Todo eso, de manera arbitraria. ### Definir un submodelo Por ejemplo, podemos definir un modelo `Image`:
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Dec 30 18:26:57 UTC 2024 - 7.5K bytes - Viewed (0) -
docs/en/docs/tutorial/response-model.md
## See it in the docs { #see-it-in-the-docs } When you see the automatic docs, you can check that the input model and output model will both have their own JSON Schema: <img src="/img/tutorial/response-model/image01.png"> And both models will be used for the interactive API documentation: <img src="/img/tutorial/response-model/image02.png"> ## Other Return Type Annotations { #other-return-type-annotations }Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 16K bytes - Viewed (0) -
docs/es/docs/tutorial/cookie-param-models.md
# Modelos de Cookies Si tienes un grupo de **cookies** que están relacionadas, puedes crear un **modelo de Pydantic** para declararlas. 🍪 Esto te permitirá **reutilizar el modelo** en **múltiples lugares** y también declarar validaciones y metadatos para todos los parámetros a la vez. 😎 /// note | Nota Esto es compatible desde la versión `0.115.0` de FastAPI. 🤓 /// /// tip | Consejo
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Dec 30 18:26:57 UTC 2024 - 3.2K bytes - Viewed (0) -
docs/en/docs/tutorial/query-param-models.md
# Query Parameter Models { #query-parameter-models } If you have a group of **query parameters** that are related, you can create a **Pydantic model** to declare them. This would allow you to **re-use the model** in **multiple places** and also to declare validations and metadata for all the parameters at once. 😎 /// note This is supported since FastAPI version `0.115.0`. 🤓 ///Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 2.2K bytes - Viewed (0) -
docs/en/docs/tutorial/cookie-param-models.md
# Cookie Parameter Models { #cookie-parameter-models } If you have a group of **cookies** that are related, you can create a **Pydantic model** to declare them. 🍪 This would allow you to **re-use the model** in **multiple places** and also to declare validations and metadata for all the parameters at once. 😎 /// note This is supported since FastAPI version `0.115.0`. 🤓 /// /// tipRegistered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 3.1K bytes - Viewed (0)