feat(api): publish validated OpenAPI contract
CI / validate (push) Successful in 7m15s
Release / release (push) Successful in 11m32s

This commit is contained in:
dmg
2026-09-10 15:11:57 -04:00
parent c2ac2ad16b
commit 47782b3ccc
19 changed files with 2420 additions and 12 deletions
+13
View File
@@ -0,0 +1,13 @@
import { readFile } from "node:fs/promises";
import { resolve } from "node:path";
export const runtime = "nodejs";
export const dynamic = "force-static";
/** Build-time snapshot of the single source; no YAML parsing or rewriting. */
export async function GET() {
const specification = await readFile(resolve(process.cwd(), "../../openapi.yaml"));
return new Response(specification, {
headers: { "content-type": "application/yaml; charset=utf-8" },
});
}