exportRegistryOpenApi
function exportRegistryOpenApi(
registry: Record<string, RegistryEntry>,
opts?: { title?: string; version?: string },
): Record<string, unknown>Output shape
openapi: '3.1.0'info.title/info.versionfromoptsor sensible defaults.paths:- For each entry with
route+httpMethod, emits a real REST path with a simple200response description. - Additionally, every
fnKeyreceives a placeholderPOST /qa/rpc/{fnKey}operation documenting the JSONRPC_CALLenvelope — this route is not mounted by the SDK; it documents how QA tools could call RPC over HTTP.
- For each entry with
Limitations
- OpenAPI cannot express the full
RegistryEntry(labels, pipelines, file hints, JSON Schemas) — only minimal operation summaries.