Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for dump_json (0.05 seconds)

  1. fastapi/_compat/v2.py

            # self._type_adapter.validate_python(value)
            # This uses Pydantic's dump_json() which serializes directly to JSON
            # bytes in one pass (via Rust), avoiding the intermediate Python dict
            # step of dump_python(mode="json") + json.dumps().
            return self._type_adapter.dump_json(
                value,
                include=include,
                exclude=exclude,
                by_alias=by_alias,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 16.7K bytes
    - Click Count (0)
  2. fastapi/routing.py

        by_alias: bool = True,
        exclude_unset: bool = False,
        exclude_defaults: bool = False,
        exclude_none: bool = False,
        is_coroutine: bool = True,
        endpoint_ctx: EndpointContext | None = None,
        dump_json: bool = False,
    ) -> Any:
        if field:
            if is_coroutine:
                value, errors = field.validate(response_content, {}, loc=("response",))
            else:
                value, errors = await run_in_threadpool(
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 193K bytes
    - Click Count (0)
Back to Top