MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / resolveOpenApiUrl

Function resolveOpenApiUrl

apps/ui/scripts/codegen/generate-api.ts:19–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17const JSON_MODE = process.argv.includes("--json");
18
19function report(status: "passed" | "failed" | "blocked", reason: string): void {
20 if (JSON_MODE) {
21 console.log(
22 JSON.stringify({
23 schemaVersion: 1,
24 checkId: "openapi.drift",
25 status,
26 reason
27 })
28 );
29 }
30}
31
32const OUTPUT = resolve(process.cwd(), "src/lib/api/schema.d.ts");
33
34function resolveOpenApiUrl(): string {
35 const explicit = process.env.OPENAPI_URL;
36

Callers 1

generate-api.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected