Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for Err (0.12 seconds)

  1. tests/test_filter_pydantic_sub_model_pv2.py

            "tags": {"key1": "value1", "key2": "value2"},
        }
    
    
    def test_validator_is_cloned(client: TestClient):
        with pytest.raises(ResponseValidationError) as err:
            client.get("/model/modelX")
        assert err.value.errors() == [
            {
                "type": "value_error",
                "loc": ("response", "name"),
                "msg": "Value error, name must end in A",
                "input": "modelX",
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 6.6K bytes
    - Click Count (0)
  2. fastapi/_compat/v2.py

    
    def _regenerate_error_with_loc(
        *, errors: Sequence[Any], loc_prefix: tuple[Union[str, int], ...]
    ) -> list[dict[str, Any]]:
        updated_loc_errors: list[Any] = [
            {**err, "loc": loc_prefix + err.get("loc", ())} for err in errors
        ]
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 19.1K bytes
    - Click Count (0)
  3. fastapi/exceptions.py

            return context
    
        def __str__(self) -> str:
            message = f"{len(self._errors)} validation error{'s' if len(self._errors) != 1 else ''}:\n"
            for err in self._errors:
                message += f"  {err}\n"
            message += self._format_endpoint_context()
            return message.rstrip()
    
    
    class RequestValidationError(ValidationException):
        def __init__(
            self,
    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)
Back to Top