Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ModelField (0.04 sec)

  1. fastapi/_compat/v2.py

                exclude_none=exclude_none,
            )
    
        def __hash__(self) -> int:
            # Each ModelField is unique for our purposes, to allow making a dict from
            # ModelField to its JSON Schema.
            return id(self)
    
    
    def _has_computed_fields(field: ModelField) -> bool:
        computed_fields = field._type_adapter.core_schema.get("schema", {}).get(
            "computed_fields", []
        )
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  2. fastapi/openapi/utils.py

    
    def get_fields_from_routes(
        routes: Sequence[BaseRoute],
    ) -> list[ModelField]:
        body_fields_from_routes: list[ModelField] = []
        responses_from_routes: list[ModelField] = []
        request_fields_from_routes: list[ModelField] = []
        callback_flat_models: list[ModelField] = []
        for route in routes:
            if getattr(route, "include_in_schema", None) and isinstance(
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  3. fastapi/dependencies/utils.py

            flat_dependant.dependencies.extend(flat_sub.dependencies)
    
        return flat_dependant
    
    
    def _get_flat_fields_from_params(fields: list[ModelField]) -> list[ModelField]:
        if not fields:
            return fields
        first_field = fields[0]
        if len(fields) == 1 and lenient_issubclass(first_field.type_, BaseModel):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 37.6K bytes
    - Viewed (3)
Back to top