Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for discriminator (0.09 sec)

  1. fastapi/params.py

                description=description,
                gt=gt,
                ge=ge,
                lt=lt,
                le=le,
                min_length=min_length,
                max_length=max_length,
                discriminator=discriminator,
                multiple_of=multiple_of,
                allow_inf_nan=allow_inf_nan,
                max_digits=max_digits,
                decimal_places=decimal_places,
                **extra,
            )
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 26.3K bytes
    - Viewed (0)
  2. tests/test_union_body_discriminator.py

        class OtherItem(BaseModel):
            value: Literal["other"]
            price: float
    
        Item = Annotated[
            Union[Annotated[FirstItem, Tag("first")], Annotated[OtherItem, Tag("other")]],
            Field(discriminator="value"),
        ]
    
        @app.post("/items/")
        def save_union_body_discriminator(
            item: Item, q: Annotated[str, Field(description="Query string")]
        ) -> dict[str, Any]:
            return {"item": item}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  3. fastapi/param_functions.py

            gt=gt,
            ge=ge,
            lt=lt,
            le=le,
            min_length=min_length,
            max_length=max_length,
            pattern=pattern,
            regex=regex,
            discriminator=discriminator,
            strict=strict,
            multiple_of=multiple_of,
            allow_inf_nan=allow_inf_nan,
            max_digits=max_digits,
            decimal_places=decimal_places,
            example=example,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 63K bytes
    - Viewed (0)
  4. tests/test_union_body_discriminator_annotated.py

    from inline_snapshot import snapshot
    from pydantic import BaseModel
    
    
    @pytest.fixture(name="client")
    def client_fixture() -> TestClient:
        from fastapi import Body
        from pydantic import Discriminator, Tag
    
        class Cat(BaseModel):
            pet_type: str = "cat"
            meows: int
    
        class Dog(BaseModel):
            pet_type: str = "dog"
            barks: float
    
        def get_pet_type(v):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  5. fastapi/openapi/models.py

        examples: Optional[list[Any]] = None
        # Ref: OpenAPI 3.1.0: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#schema-object
        # Schema Object
        discriminator: Optional[Discriminator] = None
        xml: Optional[XML] = None
        externalDocs: Optional[ExternalDocumentation] = None
        example: Annotated[
            Optional[Any],
            typing_deprecated(
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  6. fastapi/_compat/v2.py

        "serialization_alias": None,
        "title": None,
        "field_title_generator": None,
        "description": None,
        "examples": None,
        "exclude": None,
        "exclude_if": None,
        "discriminator": None,
        "deprecated": None,
        "json_schema_extra": None,
        "frozen": None,
        "validate_default": None,
        "repr": True,
        "init": None,
        "init_var": None,
        "kw_only": None,
    }
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  7. compat/maven-model-builder/src/test/resources/dag.txt

    	quarkus/extensions/reactive-pg-client/runtime/pom.xml
    	quarkus/extensions/kubernetes-service-binding/runtime/pom.xml
    	quarkus/test-framework/junit5/pom.xml
    quarkus/integration-tests/hibernate-orm-tenancy/discriminator/pom.xml
    	quarkus/extensions/undertow/runtime/pom.xml
    	quarkus/extensions/hibernate-orm/runtime/pom.xml
    	quarkus/extensions/jdbc/jdbc-postgresql/runtime/pom.xml
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 224K bytes
    - Viewed (0)
  8. docs/en/docs/release-notes.md

    * 🐛 Fix parameter aliases. PR [#14371](https://github.com/fastapi/fastapi/pull/14371) by [@YuriiMotov](https://github.com/YuriiMotov).
    
    ## 0.124.3
    
    ### Fixes
    
    * 🐛 Fix support for tagged union with discriminator inside of `Annotated` with `Body()`. PR [#14512](https://github.com/fastapi/fastapi/pull/14512) by [@tiangolo](https://github.com/tiangolo).
    
    ### Refactors
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:06:15 UTC 2025
    - 586.7K bytes
    - Viewed (0)
Back to top