- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 98 for models3 (0.05 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. /// danger
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 7.2K 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/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`. π€ /// /// tip
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 3.1K bytes - Viewed (0) -
docs/en/docs/tutorial/header-param-models.md
# Header Parameter Models { #header-parameter-models } If you have a group of related **header parameters**, 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.6K bytes - Viewed (0) -
docs/en/docs/tutorial/body-nested-models.md
## Nested Models { #nested-models } Each attribute of a Pydantic model has a type. But that type can itself be another Pydantic model. So, you can declare deeply nested JSON "objects" with specific attribute names, types and validations. All that, arbitrarily nested. ### Define a submodel { #define-a-submodel } For example, we can define an `Image` model:
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 7.3K bytes - Viewed (0) -
docs/en/docs/tutorial/request-form-models.md
# Form Models { #form-models } You can use **Pydantic models** to declare **form fields** in FastAPI. /// info To use forms, first install <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>. Make sure you create a [virtual environment](../virtual-environments.md){.internal-link target=_blank}, activate it, and then install it, for example: ```console $ pip install python-multipart ```
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 2.2K bytes - Viewed (0) -
api/maven-api-model/pom.xml
<plugin> <groupId>org.codehaus.modello</groupId> <artifactId>modello-maven-plugin</artifactId> <configuration> <version>4.2.0</version> <velocityBasedir>${project.basedir}/../../src/mdo</velocityBasedir> <models> <model>src/main/mdo/maven.mdo</model> </models> <templates> <template>model.vm</template> </templates>
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Thu Aug 07 14:31:13 UTC 2025 - 3.1K bytes - Viewed (0) -
docs/uk/docs/tutorial/header-param-models.md
## ΠΠ΅ΡΠ΅Π²ΡΡΠΊΠ° Π² ΠΠΎΠΊΡΠΌΠ΅Π½ΡΠ°ΡΡΡ ΠΠΈ ΠΌΠΎΠΆΠ΅ΡΠ΅ ΠΏΠΎΠ±Π°ΡΠΈΡΠΈ Π½Π΅ΠΎΠ±Ρ ΡΠ΄Π½Ρ Π·Π°Π³ΠΎΠ»ΠΎΠ²ΠΊΠΈ Π² ΡΠ½ΡΠ΅ΡΡΠ΅ΠΉΡΡ Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠ°ΡΡΡ Π·Π° Π°Π΄ΡΠ΅ΡΠΎΡ `/docs`: <div class="screenshot"> <img src="/img/tutorial/header-param-models/image01.png"> </div> ## ΠΠ°Π±ΠΎΡΠΎΠ½Π° ΠΠΎΠ΄Π°ΡΠΊΠΎΠ²ΠΈΡ ΠΠ°Π³ΠΎΠ»ΠΎΠ²ΠΊΡΠ² Π£ Π΄Π΅ΡΠΊΠΈΡ ΠΎΡΠΎΠ±Π»ΠΈΠ²ΠΈΡ Π²ΠΈΠΏΠ°Π΄ΠΊΠ°Ρ (ΠΉΠΌΠΎΠ²ΡΡΠ½ΠΎ, Π½Π΅ Π΄ΡΠΆΠ΅ ΠΏΠΎΡΠΈΡΠ΅Π½ΠΈΡ ) ΠΠΈ ΠΌΠΎΠΆΠ΅ΡΠ΅ Π·Π°Ρ ΠΎΡΡΡΠΈ **ΠΎΠ±ΠΌΠ΅ΠΆΠΈΡΠΈ** Π·Π°Π³ΠΎΠ»ΠΎΠ²ΠΊΠΈ, ΡΠΊΡ Ρ ΠΎΡΠ΅ΡΠ΅ ΠΎΡΡΠΈΠΌΠ°ΡΠΈ.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Wed Mar 19 17:03:13 UTC 2025 - 3K bytes - Viewed (0)