Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 151 - 160 of 984 for Model1 (0.07 seconds)

  1. docs/zh-hant/docs/how-to/separate-openapi-schemas.md

    ### 文件中的輸入模型 { #input-model-in-docs }
    
    你可以在文件中確認,`description` 欄位沒有紅色星號,表示不是必填:
    
    <div class="screenshot">
    <img src="/img/tutorial/separate-openapi-schemas/image01.png">
    </div>
    
    ### 輸出用模型 { #model-for-output }
    
    但如果你把同一個模型用作輸出,如下所示:
    
    {* ../../docs_src/separate_openapi_schemas/tutorial001_py310.py hl[19] *}
    
    ...由於 `description` 有預設值,就算你沒有為該欄位回傳任何內容,它仍會有那個預設值。
    
    ### 輸出回應資料的模型 { #model-for-output-response-data }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:15:26 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  2. docs/zh/docs/how-to/separate-openapi-schemas.md

    事实上,在某些情况下,对于同一个 Pydantic 模型,OpenAPI 中会根据是否带有**默认值**,为输入和输出分别生成**两个 JSON Schema**。
    
    我们来看看它如何工作,以及在需要时如何修改。
    
    ## 用于输入和输出的 Pydantic 模型 { #pydantic-models-for-input-and-output }
    
    假设你有一个带有默认值的 Pydantic 模型,例如:
    
    {* ../../docs_src/separate_openapi_schemas/tutorial001_py310.py ln[1:7] hl[7] *}
    
    ### 输入用的模型 { #model-for-input }
    
    如果你像下面这样把该模型用作输入:
    
    {* ../../docs_src/separate_openapi_schemas/tutorial001_py310.py ln[1:15] hl[14] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 13:37:57 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  3. docs/pt/docs/tutorial/body-fields.md

    /// warning | Atenção
    
    Note que `Field` é importado diretamente do `pydantic`, não do `fastapi` como todo o resto (`Query`, `Path`, `Body`, etc).
    
    ///
    
    ## Declare atributos do modelo { #declare-model-attributes }
    
    Você pode então utilizar `Field` com atributos do modelo:
    
    {* ../../docs_src/body_fields/tutorial001_an_py310.py hl[11:14] *}
    
    `Field` funciona da mesma forma que `Query`, `Path` e `Body`, ele possui todos os mesmos parâmetros, etc.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Nov 12 16:23:57 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  4. docs/de/docs/tutorial/body-updates.md

    Zusammengefasst, um Teil-Aktualisierungen vorzunehmen:
    
    * (Optional) verwenden Sie `PATCH` statt `PUT`.
    * Lesen Sie die bereits gespeicherten Daten aus.
    * Fügen Sie diese in ein Pydantic-Modell ein.
    * Erzeugen Sie aus dem empfangenen Modell ein `dict` ohne Defaultwerte (mittels `exclude_unset`).
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 5K bytes
    - Click Count (0)
  5. docs/fr/docs/tutorial/security/simple-oauth2.md

    ### Vérifier le mot de passe { #check-the-password }
    
    À ce stade, nous avons les données utilisateur depuis notre base, mais nous n'avons pas encore vérifié le mot de passe.
    
    Mettons d'abord ces données dans le modèle Pydantic `UserInDB`.
    
    Vous ne devez jamais enregistrer des mots de passe en clair ; nous allons donc utiliser le système (factice) de hachage de mot de passe.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 11.2K bytes
    - Click Count (0)
  6. docs/es/docs/tutorial/body-fields.md

    Fíjate que `Field` se importa directamente desde `pydantic`, no desde `fastapi` como el resto (`Query`, `Path`, `Body`, etc).
    
    ///
    
    ## Declarar atributos del modelo { #declare-model-attributes }
    
    Después puedes utilizar `Field` con los atributos del modelo:
    
    {* ../../docs_src/body_fields/tutorial001_an_py310.py hl[11:14] *}
    
    `Field` funciona de la misma manera que `Query`, `Path` y `Body`, tiene todos los mismos parámetros, etc.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Dec 16 16:33:45 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  7. docs/zh/docs/tutorial/response-model.md

    这样,你就能兼得两方面的优势:带有**工具支持**的类型注解和**数据过滤**。
    
    ## 在文档中查看 { #see-it-in-the-docs }
    
    当你查看自动文档时,你会看到输入模型和输出模型都会有各自的 JSON Schema:
    
    <img src="/img/tutorial/response-model/image01.png">
    
    并且两个模型都会用于交互式 API 文档:
    
    <img src="/img/tutorial/response-model/image02.png">
    
    ## 其他返回类型注解 { #other-return-type-annotations }
    
    有些情况下你会返回一些不是有效 Pydantic 字段的内容,并在函数上做了相应注解,只是为了获得工具链(编辑器、mypy 等)的支持。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 14.5K bytes
    - Click Count (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelCache.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.model.building;
    
    /**
     * Caches auxiliary data used during model building like already processed raw/effective models. The data in the cache
     * is meant for exclusive consumption by the model builder and is opaque to the cache implementation. The cache key is
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sat Apr 05 11:52:05 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  9. docs/fr/docs/tutorial/body-fields.md

    Notez que `Field` est importé directement depuis `pydantic`, et non depuis `fastapi` comme le sont les autres (`Query`, `Path`, `Body`, etc.).
    
    ///
    
    ## Déclarer les attributs du modèle { #declare-model-attributes }
    
    Vous pouvez ensuite utiliser `Field` avec des attributs de modèle :
    
    {* ../../docs_src/body_fields/tutorial001_an_py310.py hl[11:14] *}
    
    `Field` fonctionne de la même manière que `Query`, `Path` et `Body`, il dispose des mêmes paramètres, etc.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:12:41 GMT 2026
    - 2.9K bytes
    - Click Count (0)
  10. docs/en/docs/advanced/path-operation-advanced-configuration.md

    Using this same trick, you could use a Pydantic model to define the JSON Schema that is then included in the custom OpenAPI schema section for the *path operation*.
    
    And you could do this even if the data type in the request is not JSON.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 7.1K bytes
    - Click Count (0)
Back to Top