MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isStreamableSpec

Function isStreamableSpec

packages/plugins/openapi/src/sdk/split.ts:296–302  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

294 * negative just routes a spec through the whole-document parse.
295 */
296export const isStreamableSpec = (text: string): boolean => {
297 if (text.indexOf("\t") !== -1) return false;
298 // Anchors/aliases/merge keys: cheap substring rejects before structural work.
299 if (/(^|\s)[&*][A-Za-z0-9_]/m.test(text)) return false;
300 if (/<<\s*:/.test(text)) return false;
301 return /^paths:/m.test(text);
302};
303
304const SCHEMA_REF_PREFIX = "#/components/schemas/";
305

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected