refactor: type config schemas as typebox-compatible

This commit is contained in:
Peter Steinberger
2026-04-23 05:22:01 +01:00
parent cf1e48672b
commit 4ad8ed2cbe
16 changed files with 39 additions and 20 deletions

View File

@@ -1,10 +1,11 @@
import fs from "node:fs";
import { describe, expect, it } from "vitest";
import { validateJsonSchemaValue } from "../../../src/plugins/schema-validator.js";
import type { JsonSchemaObject } from "../../../src/shared/json-schema.types.js";
const manifest = JSON.parse(
fs.readFileSync(new URL("../openclaw.plugin.json", import.meta.url), "utf-8"),
) as { configSchema: Record<string, unknown> };
) as { configSchema: JsonSchemaObject };
describe("memory-core manifest config schema", () => {
it("accepts dreaming phase thresholds used by QA and runtime", () => {