Skip to main content

OpenAPI 3.2 streaming responses import

OpenAPI 3.2 documents that stream their bodies now import their element schemas. An itemSchema under application/jsonl, application/json-seq or text/event-stream becomes a class, and the operation links to it. Streaming responses (OpenAPI 3.2).

  • Element classes. A $ref element imports as the class it names. An inline element with properties becomes a class named after its operation, such as StreamLogsStreamItem.
  • Provenance. Every element class carries x-apiome-stream-kind (jsonl, json-seq, sse or sequential), so a stream element is never mistaken for a single body.
  • Analyze. Feature compatibility lists Sequential / streaming media types with each media type and its stream kind.