You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
openapi: sequential media types derive the wrong item type #630
The operation streams with responseStream.events set to the anonymous array, not Event. Each frame of a JSON Lines stream is one Event; the schema describes the sequence as a whole.
#1167 landed with this open, and landing this changes no emitter plan (docs/emitters/plan/streams.md, main @7e1e3fc8). On a side framed by its media type, Element already reads the Elem of a content Type whose root is a list, ahead of StreamDetail.Events, so one frame's type is the same whether Events names the list or its Elem.
The second expected item, a warning for itemSchema on a media type that isn't sequential, is the compiler's and #1167 doesn't touch it.
A constraint on the first bullet, found while working on #1191: the list can't be read during the operation walk. applyStreaming runs mid-walk, and a $ref target need not be in the registry yet, since a target another document holds is built when Finish fulfils its promise, so a mid-walk read would follow declaration order. Reading it from a settlement is the shape that works, and that has to move the comparison in classifyStream with it: whether two contents name the same element depends on the resolved Elem, so ambiguous can't be decided before the registry is whole.
No consumer is waiting on this: docs/emitters/plan/streams.md already reads a list's Elem from the content's Type, so the plan's element is right either way, and this only changes what Events states.
Activity
docs(emitter-design): settle the responses beside the primary
chore(skills): correct a Why that a final PR falsified
OmarAlJarrah commentedon Oct 30, 2026
#1167 landed with this open, and landing this changes no emitter plan (
docs/emitters/plan/streams.md, main @7e1e3fc8). On a side framed by its media type,Elementalready reads theElemof a contentTypewhose root is a list, ahead ofStreamDetail.Events, so one frame's type is the same whetherEventsnames the list or itsElem.The second expected item, a warning for
itemSchemaon a media type that isn't sequential, is the compiler's and #1167 doesn't touch it.OmarAlJarrah commentedon Nov 1, 2026
A constraint on the first bullet, found while working on #1191: the list can't be read during the operation walk.
applyStreamingruns mid-walk, and a$reftarget need not be in the registry yet, since a target another document holds is built whenFinishfulfils its promise, so a mid-walk read would follow declaration order. Reading it from a settlement is the shape that works, and that has to move the comparison inclassifyStreamwith it: whether two contents name the same element depends on the resolvedElem, soambiguouscan't be decided before the registry is whole.No consumer is waiting on this:
docs/emitters/plan/streams.mdalready reads a list'sElemfrom the content'sType, so the plan's element is right either way, and this only changes whatEventsstates.