Skip to content

Commit 9046aec

Browse files
committed
Sync open source content 🐝 (from e16b3de9cf00159079f727b55fd30fdc274ea1ee)
1 parent ee04436 commit 9046aec

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

docs/speakeasy-reference/generation/python-config.mdx

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,31 @@ python:
339339
]}
340340
/>
341341

342+
## Server-sent events configuration
343+
344+
```yml
345+
python:
346+
sseFlatResponse: true
347+
```
348+
349+
<Table
350+
data={[
351+
{
352+
name: "sseFlatResponse",
353+
required: "false",
354+
default: "true",
355+
description:
356+
"When enabled, hoists the `data` field content to the top level for server-sent events, eliminating the need to destructure data from yielded items. Consumers can directly access the data without additional parsing.",
357+
},
358+
]}
359+
columns={[
360+
{ key: "name", header: "Name" },
361+
{ key: "required", header: "Required" },
362+
{ key: "default", header: "Default Value" },
363+
{ key: "description", header: "Description" },
364+
]}
365+
/>
366+
342367
## Pytest configuration
343368

344369
```yml

docs/speakeasy-reference/generation/ts-config.mdx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,3 +210,22 @@ typescript:
210210
{ key: "default", header: "Default" }
211211
]}
212212
/>
213+
214+
## Server-sent events configuration
215+
216+
```yml
217+
typescript:
218+
sseFlatResponse: true
219+
```
220+
221+
<Table
222+
data={[
223+
{ property: "sseFlatResponse", description: "When enabled, hoists the `data` field content to the top level for server-sent events, eliminating the need to destructure data from yielded items. Consumers can directly access the data without additional parsing.", type: "boolean", default: "true" }
224+
]}
225+
columns={[
226+
{ key: "property", header: "Property" },
227+
{ key: "description", header: "Description" },
228+
{ key: "type", header: "Type" },
229+
{ key: "default", header: "Default" }
230+
]}
231+
/>

0 commit comments

Comments
 (0)