Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for stream_item_field (0.08 seconds)

  1. fastapi/routing.py

            if not errors:
                # Shared serializer for stream items (JSONL and SSE).
                # Validates against stream_item_field when set, then
                # serializes to JSON bytes.
                def _serialize_data(data: Any) -> bytes:
                    if stream_item_field:
                        value, errors_ = stream_item_field.validate(
                            data, {}, loc=("response",)
                        )
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 193K bytes
    - Click Count (0)
  2. fastapi/openapi/utils.py

                    if route.is_json_stream:
                        jsonl_content: dict[str, Any] = {}
                        if route.stream_item_field:
                            item_schema = get_schema_from_model_field(
                                field=route.stream_item_field,
                                model_name_map=model_name_map,
                                field_mapping=field_mapping,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 25.6K bytes
    - Click Count (0)
Back to Top