Showing the changes to packages/plugins/openapi/src (5 of 7 files). Show all
Unified · Split
| @@ -93,7 +93,7 @@ describe("OpenAPI extract response bodies", () => { · 92 unmodified lines | ||
| 93 | 93 | // NDJSON endpoints (e.g. Vercel's runtime-logs) declare the schema of |
| 94 | 94 | // ONE line under application/stream+json; the invoke path returns an |
| 95 | 95 | // array of parsed lines, so the advertised output schema must be that |
| 96 | − // array — not the per-line object. | |
| 96 | + // array, not the per-line object. | |
| 97 | 97 | const lineSchema = { |
| 98 | 98 | type: "object", |
| 99 | 99 | properties: { level: { type: "string" }, message: { type: "string" } }, |
| @@ -265,7 +265,7 @@ const extractResponseBody = ( · 264 unmodified lines | ||
| 265 | 265 | * Derive an operation's output schema from its response body. NDJSON bodies |
| 266 | 266 | * (`application/stream+json` and friends) are spec'd per LINE but returned by |
| 267 | 267 | * the invoke path as an array of parsed lines, so the advertised schema wraps |
| 268 | − * the line schema in an array — otherwise describe previews promise a single | |
| 268 | + * the line schema in an array; otherwise describe previews promise a single | |
| 269 | 269 | * object that invocations never return. Used by both the whole-tree extract |
| 270 | 270 | * and the serve path's stored-binding rebuild so the two stay in lockstep. |
| 271 | 271 | */ |
| @@ -3,7 +3,7 @@ · 2 unmodified lines | ||
| 3 | 3 | // |
| 4 | 4 | // Extraction used to persist an NDJSON operation's PER-LINE response schema as |
| 5 | 5 | // the tool's output schema, while the invoke path returns an ARRAY of parsed |
| 6 | −// lines — so describe previews promised a single object that invocations never | |
| 6 | +// lines, so describe previews promised a single object that invocations never | |
| 7 | 7 | // returned. The producer now wraps those schemas in an array; the per-line |
| 8 | 8 | // shape can't be recognized from a persisted `tool` row alone (it's just a |
| 9 | 9 | // JSON schema), but the stored operation bindings kept the response content |
| @@ -52,7 +52,7 @@ const tableExists = (client: SqliteDataMigrationClient, table: string) => · 42 unmodified lines | ||
| 52 | 52 | /** Stale-mark every connection whose integration has at least one stored |
| 53 | 53 | * operation binding with an NDJSON response, so the next read rebuilds its |
| 54 | 54 | * tool rows (with array-wrapped output schemas). Returns the number of |
| 55 | − * connections marked. Fresh databases may lack either table — nothing to | |
| 55 | + * connections marked. Fresh databases may lack either table; nothing to | |
| 56 | 56 | * migrate. */ |
| 57 | 57 | export const runSqliteNdjsonOutputMigration = ( |
| 58 | 58 | client: SqliteDataMigrationClient, |
| @@ -138,7 +138,7 @@ export const normalizeMediaType = (mediaType: string | null | undefined): string · 137 unmodified lines | ||
| 138 | 138 | |
| 139 | 139 | /** Media types whose bodies are newline-delimited JSON documents. The invoke |
| 140 | 140 | * path collects these streams and returns an ARRAY of parsed lines, so every |
| 141 | − * schema surface must describe that array — the spec convention is to declare | |
| 141 | + * schema surface must describe that array: the spec convention is to declare | |
| 142 | 142 | * the schema of ONE line (e.g. Vercel's runtime-logs endpoint). */ |
| 143 | 143 | export const NDJSON_MEDIA_TYPES: ReadonlySet<string> = new Set([ |
| 144 | 144 | "application/stream+json", |
| @@ -279,7 +279,7 @@ describe("OpenAPI streaming responses", () => { · 278 unmodified lines | ||
| 279 | 279 | // The spec declares the schema of ONE line (Vercel's runtime-logs |
| 280 | 280 | // convention); the runtime returns an array of parsed lines. The |
| 281 | 281 | // advertised output schema must describe that array on BOTH serve |
| 282 | − // paths — the add-time compile and the stored-binding rebuild — or | |
| 282 | + // paths (the add-time compile and the stored-binding rebuild) or | |
| 283 | 283 | // agents write code against a shape that never comes back. |
| 284 | 284 | const lineSchema = { |
| 285 | 285 | type: "object", |