Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 9 of 9 for FastAPIDeprecationWarning (0.13 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. tests/test_schema_extra_examples.py

        with pytest.warns(FastAPIDeprecationWarning):
    
            @app.get("/path_example_examples/{item_id}")
            def path_example_examples(
                item_id: str = Path(
                    example="item_overridden",
                    examples=["item_1", "item_2"],
                ),
            ):
                return item_id
    
        with pytest.warns(FastAPIDeprecationWarning):
    
            @app.get("/query_example/")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 32.2K bytes
    - Click Count (0)
  2. fastapi/params.py

    import warnings
    from collections.abc import Sequence
    from dataclasses import dataclass
    from enum import Enum
    from typing import Annotated, Any, Callable, Optional, Union
    
    from fastapi.exceptions import FastAPIDeprecationWarning
    from fastapi.openapi.models import Example
    from pydantic import AliasChoices, AliasPath
    from pydantic.fields import FieldInfo
    from typing_extensions import Literal, deprecated
    
    from ._compat import (
        Undefined,
    )
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 26.3K bytes
    - Click Count (0)
  3. tests/test_regex_deprecated_params.py

    from typing import Annotated
    
    import pytest
    from fastapi import FastAPI, Query
    from fastapi.exceptions import FastAPIDeprecationWarning
    from fastapi.testclient import TestClient
    
    from .utils import needs_py310
    
    
    def get_client():
        app = FastAPI()
        with pytest.warns(FastAPIDeprecationWarning):
    
            @app.get("/items/")
            async def read_items(
                q: Annotated[str | None, Query(regex="^fixedquery$")] = None,
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  4. fastapi/utils.py

        Undefined,
        UndefinedType,
        Validator,
        annotation_is_pydantic_v1,
    )
    from fastapi.datastructures import DefaultPlaceholder, DefaultType
    from fastapi.exceptions import FastAPIDeprecationWarning, PydanticV1NotSupportedError
    from pydantic import BaseModel
    from pydantic.fields import FieldInfo
    from typing_extensions import Literal
    
    from ._compat import v2
    
    if TYPE_CHECKING:  # pragma: nocover
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  5. tests/test_regex_deprecated_body.py

    from typing import Annotated
    
    import pytest
    from fastapi import FastAPI, Form
    from fastapi.exceptions import FastAPIDeprecationWarning
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    from .utils import needs_py310
    
    
    def get_client():
        app = FastAPI()
        with pytest.warns(FastAPIDeprecationWarning):
    
            @app.post("/items/")
            async def read_items(
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  6. tests/test_tutorial/test_query_params_str_validations/test_tutorial004.py

                marks=(
                    needs_py310,
                    pytest.mark.filterwarnings(
                        "ignore:`regex` has been deprecated, please use `pattern` instead:fastapi.exceptions.FastAPIDeprecationWarning"
                    ),
                ),
            ),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(
            f"docs_src.query_params_str_validations.{request.param}"
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 12:45:20 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  7. fastapi/openapi/utils.py

        _get_flat_fields_from_params,
        get_flat_dependant,
        get_flat_params,
        get_validation_alias,
    )
    from fastapi.encoders import jsonable_encoder
    from fastapi.exceptions import FastAPIDeprecationWarning
    from fastapi.openapi.constants import METHODS_WITH_BODY, REF_PREFIX
    from fastapi.openapi.models import OpenAPI
    from fastapi.params import Body, ParamTypes
    from fastapi.responses import Response
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 23.2K bytes
    - Click Count (0)
  8. fastapi/exceptions.py

            self.body = body
    
    
    class PydanticV1NotSupportedError(FastAPIError):
        """
        A pydantic.v1 model is used, which is no longer supported.
        """
    
    
    class FastAPIDeprecationWarning(UserWarning):
        """
        A custom deprecation warning as DeprecationWarning is ignored
        Ref: https://sethmlarson.dev/deprecations-via-warnings-dont-work-for-python-libraries
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  9. docs/en/docs/release-notes.md

    * ✅ Run performance tests only on Pydantic v2. PR [#14608](https://github.com/fastapi/fastapi/pull/14608) by [@tiangolo](https://github.com/tiangolo).
    
    ## 0.127.1
    
    ### Refactors
    
    * 🔊 Add a custom `FastAPIDeprecationWarning`. PR [#14605](https://github.com/fastapi/fastapi/pull/14605) by [@tiangolo](https://github.com/tiangolo).
    
    ### Docs
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 19:06:15 GMT 2025
    - 586.7K bytes
    - Click Count (0)
Back to Top