fix(custom-widgets): address v2 merge review

This commit is contained in:
ajnart committed 2026-07-22 23:36:25 +02:00
1 parent 6aceb2fd1f
commit 48ce83806d
122 files changed
+8534 -1447

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
import assert from "node:assert/strict";
import { readFile } from "node:fs/promises";
import { openApiDocument } from "@homarr/api/open-api";
const baseUrl = "http://localhost:3000";
const generated = JSON.parse(JSON.stringify(openApiDocument(baseUrl))) as unknown;
const checkedIn = JSON.parse(await readFile("apps/docs/static/api/open-api-schema.json", "utf8")) as unknown;
try {
assert.deepStrictEqual(checkedIn, generated);
} catch {
console.error(
"The checked-in OpenAPI schema is stale. Regenerate it from openApiDocument and update apps/docs/static/api/open-api-schema.json.",
);
process.exitCode = 1;
}