Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for FastAPIError (0.23 seconds)

  1. fastapi/exceptions.py

    
    RequestErrorModel: type[BaseModel] = create_model("Request")
    WebSocketErrorModel: type[BaseModel] = create_model("WebSocket")
    
    
    class FastAPIError(RuntimeError):
        """
        A generic, FastAPI-specific error.
        """
    
    
    class DependencyScopeError(FastAPIError):
        """
        A dependency declared that it depends on another dependency with an invalid
        (narrower) scope.
        """
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:41:21 GMT 2026
    - 7.3K bytes
    - Click Count (0)
  2. tests/test_response_model_as_return_annotation.py

    import pytest
    from fastapi import FastAPI
    from fastapi.exceptions import FastAPIError, ResponseValidationError
    from fastapi.responses import JSONResponse, Response
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    from pydantic import BaseModel
    
    
    class BaseUser(BaseModel):
        name: str
    
    
    class User(BaseUser):
        surname: str
    
    
    class DBUser(User):
        password_hash: str
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 50.3K bytes
    - Click Count (0)
  3. fastapi/routing.py

        get_stream_item_type,
        get_typed_return_annotation,
        solve_dependencies,
    )
    from fastapi.encoders import jsonable_encoder
    from fastapi.exceptions import (
        EndpointContext,
        FastAPIError,
        RequestValidationError,
        ResponseValidationError,
        WebSocketRequestValidationError,
    )
    from fastapi.sse import (
        _PING_INTERVAL,
        KEEPALIVE_COMMENT,
        EventSourceResponse,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 193K bytes
    - Click Count (0)
  4. fastapi/utils.py

        try:
            return v2.ModelField(mode=mode, name=name, field_info=field_info)
        except PydanticSchemaGenerationError:
            raise fastapi.exceptions.FastAPIError(
                _invalid_args_message.format(type_=type_)
            ) from None
    
    
    def generate_operation_id_for_path(
        *, name: str, path: str, method: str
    ) -> str:  # pragma: nocover
        warnings.warn(
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:41:21 GMT 2026
    - 4.2K bytes
    - Click Count (0)
  5. fastapi/applications.py

    from fastapi.exception_handlers import (
        http_exception_handler,
        request_validation_exception_handler,
        websocket_request_validation_exception_handler,
    )
    from fastapi.exceptions import (
        FastAPIError,
        RequestValidationError,
        WebSocketRequestValidationError,
    )
    from fastapi.logger import logger
    from fastapi.middleware.asyncexitstack import AsyncExitStackMiddleware
    from fastapi.openapi.docs import (
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Apr 01 16:16:24 GMT 2026
    - 178.6K bytes
    - Click Count (0)
  6. docs/en/docs/release-notes.md

    ## 0.123.2 (2025-12-02)
    
    ### Fixes
    
    * 🐛 Fix unformatted `{type_}` in FastAPIError. PR [#14416](https://github.com/fastapi/fastapi/pull/14416) by [@Just-Helpful](https://github.com/Just-Helpful).
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Apr 03 12:07:04 GMT 2026
    - 631K bytes
    - Click Count (0)
Back to Top