mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-08-29 00:25:38 -04:00
Generate an OpenAPI 3.1 spec from the oRPC contract at build time using @orpc/openapi, then use fumadocs-openapi to render interactive API reference pages grouped by tag (Titles, Episodes, Seasons, etc.). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
10 lines
215 B
TypeScript
10 lines
215 B
TypeScript
import { generateFiles } from "fumadocs-openapi";
|
|
import { openapi } from "../src/lib/openapi";
|
|
|
|
void generateFiles({
|
|
input: openapi,
|
|
output: "./content/docs/api",
|
|
per: "tag",
|
|
addGeneratedComment: true,
|
|
});
|