close
Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/oas.md
Original file line number Diff line number Diff line change
Expand Up @@ -1632,7 +1632,7 @@ data: across two lines
retry: 5

event: addInt64
data: 1234.5678
data: 1234
unknownField: this is ignored

: This is a comment
Expand All @@ -1644,7 +1644,7 @@ To more clearly see how this stream is handled, the following is the equivalent

```jsonl
{"event": "addString", "data": "This data is formatted\nacross two lines", "retry": 5}
{"event": "addInt64", "data": "1234.5678"}
{"event": "addInt64", "data": "1234"}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a number, not a string, so no quotes should be used in the JSON form:

Suggested change
{"event": "addInt64", "data": "1234"}
{"event": "addInt64", "data": 1234}

{"event": "addJSON", "data": "{\"foo\": 42}"}
```

Expand Down
Loading