fix(reference): require exact optional JSON diagnostics at the source schema

This commit is contained in:
morluto
2026-10-24 04:06:01 +08:00
parent 88bbf9c006
commit 779242aef0
3 changed files with 23 additions and 4 deletions
@@ -1,4 +1,4 @@
import { jsonObjectSchema } from "../../domain/jsonValue.js";
import type { JsonValue } from "../../domain/jsonValue.js";
import { createEvidence } from "../../domain/evidence.js";
import {
readRuntimeReconciliationInput,
@@ -73,7 +73,7 @@ export const JAVASCRIPT_APPLICATION_VERSION_COMPARISON_EXAMPLE = {
};
/** Historical source inventory compared with inline application Evidence. */
export const SOURCE_TO_BUNDLE_COMPARISON_EXAMPLE = jsonObjectSchema.parse({
export const SOURCE_TO_BUNDLE_COMPARISON_EXAMPLE = {
reference: createHistoricalSourceGraph({
schema: "HistoricalSourceGraph",
authority: "historical-reference",
@@ -112,4 +112,4 @@ export const SOURCE_TO_BUNDLE_COMPARISON_EXAMPLE = jsonObjectSchema.parse({
limitations: [],
}),
application: JAVASCRIPT_APPLICATION_EVIDENCE_EXAMPLE,
});
} satisfies Readonly<Record<string, JsonValue>>;