Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for erreurs (0.04 sec)

  1. fastapi/exceptions.py

        """
        An HTTP exception you can raise in your own code to show errors to the client.
    
        This is for client errors, invalid authentication, invalid data, etc. Not for server
        errors in your code.
    
        Read more about it in the
        [FastAPI docs for Handling Errors](https://fastapi.tiangolo.com/tutorial/handling-errors/).
    
        ## Example
    
        ```python
        from fastapi import FastAPI, HTTPException
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  2. fastapi/dependencies/utils.py

                async_exit_stack=async_exit_stack,
                embed_body_fields=embed_body_fields,
            )
            background_tasks = solved_result.background_tasks
            if solved_result.errors:
                errors.extend(solved_result.errors)
                continue
            if sub_dependant.use_cache and sub_dependant.cache_key in dependency_cache:
                solved = dependency_cache[sub_dependant.cache_key]
            elif (
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 37.6K bytes
    - Viewed (3)
  3. fastapi/_compat/v2.py

                    None,
                )
            except ValidationError as exc:
                return None, _regenerate_error_with_loc(
                    errors=exc.errors(include_url=False), loc_prefix=loc
                )
    
        def serialize(
            self,
            value: Any,
            *,
            mode: Literal["json", "python"] = "json",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_custom_request_and_route/test_tutorial002.py

    
    def test_exception_handler_body_access(client: TestClient):
        response = client.post("/", json={"numbers": [1, 2, 3]})
        assert response.json() == {
            "detail": {
                "errors": [
                    {
                        "type": "list_type",
                        "loc": ["body"],
                        "msg": "Input should be a valid list",
                        "input": {"numbers": [1, 2, 3]},
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  5. fastapi/encoders.py

            )
        try:
            data = dict(obj)
        except Exception as e:
            errors: list[Exception] = []
            errors.append(e)
            try:
                data = vars(obj)
            except Exception as e:
                errors.append(e)
                raise ValueError(errors) from e
        return jsonable_encoder(
            data,
            include=include,
            exclude=exclude,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_settings/test_app01.py

        if mod_name in sys.modules:
            del sys.modules[mod_name]  # pragma: no cover
    
        with pytest.raises(ValidationError) as exc_info:
            importlib.import_module(mod_name)
        assert exc_info.value.errors() == [
            {
                "loc": ("admin_email",),
                "msg": "Field required",
                "type": "missing",
                "input": {},
                "url": IsAnyStr,
            }
        ]
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  7. .github/workflows/pre-commit.yml

                git push
              fi
          - uses: pre-commit-ci/lite-action@v1.1.0
            if: env.HAS_SECRETS == 'false'
            with:
              msg: 🎨 Auto format
          - name: Error out on pre-commit errors
            if: steps.precommit.outcome == 'failure'
            run: exit 1
    
      # https://github.com/marketplace/actions/alls-green#why
      pre-commit-alls-green:  # This job does nothing and is only used for the branch protection
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 23 11:17:16 UTC 2025
    - 3K bytes
    - Viewed (0)
  8. fastapi/routing.py

                dependency_overrides_provider=dependency_overrides_provider,
                async_exit_stack=async_exit_stack,
                embed_body_fields=embed_body_fields,
            )
            errors = solved_result.errors
            if not errors:
                raw_response = await run_endpoint_function(
                    dependant=dependant,
                    values=solved_result.values,
                    is_coroutine=is_coroutine,
                )
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 174.6K bytes
    - Viewed (0)
  9. tests/test_filter_pydantic_sub_model_pv2.py

        }
    
    
    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",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  10. docs/en/docs/advanced/dataclasses.md

    You can also combine `dataclasses` with other type annotations to make nested data structures.
    
    In some cases, you might still have to use Pydantic's version of `dataclasses`. For example, if you have errors with the automatically generated API documentation.
    
    In that case, you can simply swap the standard `dataclasses` with `pydantic.dataclasses`, which is a drop-in replacement:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 4.2K bytes
    - Viewed (0)
Back to top