From 562966500faf45525b4f61e4b8100026bed5671d Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Sat, 24 Oct 2026 03:15:09 +0800 Subject: [PATCH] fix(contracts): validate historical source examples as exact JSON values --- .../javascript/javascriptApplicationWorkflowExamples.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/contracts/javascript/javascriptApplicationWorkflowExamples.ts b/src/contracts/javascript/javascriptApplicationWorkflowExamples.ts index 95217bc81d..948670fb41 100644 --- a/src/contracts/javascript/javascriptApplicationWorkflowExamples.ts +++ b/src/contracts/javascript/javascriptApplicationWorkflowExamples.ts @@ -1,3 +1,4 @@ +import { jsonObjectSchema } from "../../domain/jsonValue.js"; import { createEvidence } from "../../domain/evidence.js"; import { readRuntimeReconciliationInput, @@ -72,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 = { +export const SOURCE_TO_BUNDLE_COMPARISON_EXAMPLE = jsonObjectSchema.parse({ reference: createHistoricalSourceGraph({ schema: "HistoricalSourceGraph", authority: "historical-reference", @@ -111,4 +112,4 @@ export const SOURCE_TO_BUNDLE_COMPARISON_EXAMPLE = { limitations: [], }), application: JAVASCRIPT_APPLICATION_EVIDENCE_EXAMPLE, -}; +});