Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for deprecatet (0.04 sec)

  1. fastapi/params.py

            example: Annotated[
                Optional[Any],
                deprecated(
                    "Deprecated in OpenAPI 3.1.0 that now uses JSON Schema 2020-12, "
                    "although still supported. Use examples instead."
                ),
            ] = _Unset,
            openapi_examples: Optional[dict[str, Example]] = None,
            deprecated: Union[deprecated, str, bool, None] = None,
            include_in_schema: bool = True,
    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. fastapi/param_functions.py

                """
            ),
        ] = None,
        deprecated: Annotated[
            Union[deprecated, str, bool, None],
            Doc(
                """
                Mark this parameter field as deprecated.
    
                It will affect the generated OpenAPI (e.g. visible at `/docs`).
                """
            ),
        ] = None,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 63K bytes
    - Viewed (0)
  3. fastapi/routing.py

                        description=route.description,
                        response_description=route.response_description,
                        responses=combined_responses,
                        deprecated=route.deprecated or deprecated or self.deprecated,
                        methods=route.methods,
                        operation_id=route.operation_id,
                        response_model_include=route.response_model_include,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 174.6K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_query_params_str_validations/test_tutorial010.py

                            {
                                "description": "Query string for the items to search in the database that have a good match",
                                "required": False,
                                "deprecated": True,
                                "schema": {
                                    "anyOf": [
                                        {
                                            "type": "string",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  5. fastapi/openapi/utils.py

                message += f" at {file_name}"
            warnings.warn(message, stacklevel=1)
        operation_ids.add(operation_id)
        operation["operationId"] = operation_id
        if route.deprecated:
            operation["deprecated"] = route.deprecated
        return operation
    
    
    def get_openapi_path(
        *,
        route: routing.APIRoute,
        operation_ids: set[str],
        model_name_map: ModelNameMap,
        field_mapping: dict[
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  6. fastapi/openapi/models.py

    from fastapi.logger import logger
    from pydantic import (
        AnyUrl,
        BaseModel,
        Field,
        GetJsonSchemaHandler,
    )
    from typing_extensions import Literal, TypedDict
    from typing_extensions import deprecated as typing_deprecated
    
    try:
        import email_validator
    
        assert email_validator  # make autoflake ignore the unused import
        from pydantic import EmailStr
    except ImportError:  # pragma: no cover
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  7. pyproject.toml

        'ignore:datetime\.datetime\.utcfromtimestamp\(\) is deprecated and scheduled for removal in a future version\..*:DeprecationWarning:sqlalchemy',
        # Trio 24.1.0 raises a warning from attrs
        # Ref: https://github.com/python-trio/trio/pull/3054
        # Remove once there's a new version of Trio
        'ignore:The `hash` argument is deprecated*:DeprecationWarning:trio',
    ]
    
    [tool.coverage.run]
    parallel = true
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  8. fastapi/utils.py

    
    def generate_operation_id_for_path(
        *, name: str, path: str, method: str
    ) -> str:  # pragma: nocover
        warnings.warn(
            message="fastapi.utils.generate_operation_id_for_path() was deprecated, "
            "it is not used internally, and will be removed soon",
            category=FastAPIDeprecationWarning,
            stacklevel=2,
        )
        operation_id = f"{name}{path}"
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_sql_databases/test_tutorial001.py

            yield c
        # Clean up connection explicitly to avoid resource warning
        mod.engine.dispose()
    
    
    def test_crud_app(client: TestClient):
        # TODO: this warns that SQLModel.from_orm is deprecated in Pydantic v1, refactor
        # this if using obj.model_validate becomes independent of Pydantic v2
        with warnings.catch_warnings(record=True):
            warnings.simplefilter("always")
            # No heroes before creating
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 14K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_sql_databases/test_tutorial002.py

            yield c
        # Clean up connection explicitly to avoid resource warning
        mod.engine.dispose()
    
    
    def test_crud_app(client: TestClient):
        # TODO: this warns that SQLModel.from_orm is deprecated in Pydantic v1, refactor
        # this if using obj.model_validate becomes independent of Pydantic v2
        with warnings.catch_warnings(record=True):
            warnings.simplefilter("always")
            # No heroes before creating
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 17.9K bytes
    - Viewed (0)
Back to top