Skip to content

Commit c55d90a

Browse files
chore: update tests
1 parent cddc989 commit c55d90a

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

components.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2388,6 +2388,27 @@ components:
23882388
type: string
23892389
required:
23902390
- url
2391+
optionalDataEvent:
2392+
description: Represents an SSE event where the data field is optional (not in required array)
2393+
type: object
2394+
properties:
2395+
event:
2396+
type: string
2397+
data:
2398+
$ref: "#/components/schemas/optionalDataEventPayload"
2399+
id:
2400+
type: string
2401+
retry:
2402+
type: integer
2403+
required:
2404+
- event
2405+
optionalDataEventPayload:
2406+
type: object
2407+
properties:
2408+
content:
2409+
type: string
2410+
required:
2411+
- content
23912412
themeRequestOpaque:
23922413
type: object
23932414
properties:

test.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11779,6 +11779,21 @@ paths:
1177911779
x-speakeasy-sse-sentinel: "[SENTINEL]"
1178011780
schema:
1178111781
$ref: "components.yaml#/components/schemas/textEvent"
11782+
/eventstreams/optionaldata:
11783+
post:
11784+
tags:
11785+
- eventstreams
11786+
operationId: optionalData
11787+
description: Test SSE endpoint with optional data field in the event schema
11788+
servers:
11789+
- url: http://localhost:35456
11790+
responses:
11791+
"200":
11792+
description: Ok
11793+
content:
11794+
text/event-stream:
11795+
schema:
11796+
$ref: "components.yaml#/components/schemas/optionalDataEvent"
1178211797
/jsonl:
1178311798
get:
1178411799
tags:

0 commit comments

Comments
 (0)