Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 201 - 210 of 386 for Models (0.04 seconds)

  1. docs/en/docs/async.md

    This kind of asynchronicity is what made NodeJS popular (even though NodeJS is not parallel) and that's the strength of Go as a programming language.
    
    And that's the same level of performance you get with **FastAPI**.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 23.4K bytes
    - Click Count (0)
  2. tests/test_additional_responses_union_duplicate_anyof.py

    Regression test: Ensure app-level responses with Union models and content/examples
    don't accumulate duplicate $ref entries in anyOf arrays.
    See https://github.com/fastapi/fastapi/pull/14463
    """
    
    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    from pydantic import BaseModel
    
    
    class ModelA(BaseModel):
        a: str
    
    
    class ModelB(BaseModel):
        b: str
    
    
    app = FastAPI(
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  3. docs/tr/docs/how-to/separate-openapi-schemas.md

    ### Input için Model { #model-for-input }
    
    Bu modeli şöyle input olarak kullanırsanız:
    
    {* ../../docs_src/separate_openapi_schemas/tutorial001_py310.py ln[1:15] hl[14] *}
    
    ...`description` alanı **zorunlu olmaz**. Çünkü `None` default değerine sahiptir.
    
    ### Dokümanlarda Input Modeli { #input-model-in-docs }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 05 15:43:38 GMT 2026
    - 4.8K bytes
    - Click Count (0)
  4. docs/uk/docs/how-to/separate-openapi-schemas.md

    Розгляньмо, як це працює, і як це змінити за потреби.
    
    ## Моделі Pydantic для введення та виведення { #pydantic-models-for-input-and-output }
    
    Припустімо, у вас є модель Pydantic зі значеннями за замовчуванням, наприклад:
    
    {* ../../docs_src/separate_openapi_schemas/tutorial001_py310.py ln[1:7] hl[7] *}
    
    ### Модель для введення { #model-for-input }
    
    Якщо ви використовуєте цю модель як введення, як тут:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:43:14 GMT 2026
    - 6.7K bytes
    - Click Count (0)
  5. tests/test_openapi_schema_type.py

    import pytest
    from fastapi.openapi.models import Schema, SchemaType
    
    
    @pytest.mark.parametrize(
        "type_value",
        [
            "array",
            ["string", "null"],
            None,
        ],
    )
    def test_allowed_schema_type(
        type_value: SchemaType | list[SchemaType] | None,
    ) -> None:
        """Test that Schema accepts SchemaType, List[SchemaType] and None for type field."""
        schema = Schema(type=type_value)
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 685 bytes
    - Click Count (0)
  6. docs/de/docs/how-to/separate-openapi-schemas.md

    </div>
    
    ### Modell für die Ausgabe { #model-for-output }
    
    Wenn Sie jedoch dasselbe Modell als Ausgabe verwenden, wie hier:
    
    {* ../../docs_src/separate_openapi_schemas/tutorial001_py310.py hl[19] *}
    
    ... dann, weil `description` einen Defaultwert hat, wird es, wenn Sie für dieses Feld **nichts zurückgeben**, immer noch diesen **Defaultwert** haben.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 24 10:28:19 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  7. docs/ru/docs/how-to/separate-openapi-schemas.md

    Посмотрим, как это работает, и как это изменить при необходимости.
    
    ## Pydantic‑модели для входа и выхода { #pydantic-models-for-input-and-output }
    
    Предположим, у вас есть Pydantic‑модель со значениями по умолчанию, как здесь:
    
    {* ../../docs_src/separate_openapi_schemas/tutorial001_py310.py ln[1:7] hl[7] *}
    
    ### Модель для входа { #model-for-input }
    
    Если использовать эту модель как входную, как здесь:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Jan 20 23:03:07 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  8. fastapi/security/open_id_connect_url.py

    from typing import Annotated
    
    from annotated_doc import Doc
    from fastapi.openapi.models import OpenIdConnect as OpenIdConnectModel
    from fastapi.security.base import SecurityBase
    from starlette.exceptions import HTTPException
    from starlette.requests import Request
    from starlette.status import HTTP_401_UNAUTHORIZED
    
    
    class OpenIdConnect(SecurityBase):
        """
        OpenID Connect authentication class. An instance of it would be used as a
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Mar 16 10:16:48 GMT 2026
    - 3.1K bytes
    - Click Count (0)
  9. docs/ja/docs/how-to/separate-openapi-schemas.md

    その動作と、必要に応じての変更方法を見ていきます。
    
    ## 入出力の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 15:24:30 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  10. docs/tr/docs/tutorial/security/simple-oauth2.md

        disabled = user_dict["disabled"],
        hashed_password = user_dict["hashed_password"],
    )
    ```
    
    /// info | Bilgi
    
    `**user_dict` için daha kapsamlı bir açıklama için [**Extra Models** dokümantasyonundaki ilgili bölüme](../extra-models.md#about-user-in-dict) geri dönüp bakın.
    
    ///
    
    ## Token’ı Döndürme { #return-the-token }
    
    `token` endpoint’inin response’u bir JSON object olmalıdır.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 10.4K bytes
    - Click Count (0)
Back to Top