From 9f53e51b11056dc8f46046e2f1083e53af34e2bf Mon Sep 17 00:00:00 2001 From: Peter <304086198+peter-research@users.noreply.github.com> Date: Sat, 10 Oct 2026 11:33:53 +0200 Subject: [PATCH] fix: reuse validators for identical output schemas --- scripts/lib/real-ghidra-boundaries.mjs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/lib/real-ghidra-boundaries.mjs b/scripts/lib/real-ghidra-boundaries.mjs index 0a59c5fae..849815b84 100644 --- a/scripts/lib/real-ghidra-boundaries.mjs +++ b/scripts/lib/real-ghidra-boundaries.mjs @@ -40,7 +40,11 @@ export async function verifyGhidraBoundaries( ajv.validateSchema(tool[key]), `${tool.name} ${key}: ${JSON.stringify(ajv.errors)}`, ); - validators.set(tool.name, ajv.compile(tool.outputSchema)); + validators.set( + tool.name, + (tool.outputSchema?.$id && ajv.getSchema(tool.outputSchema.$id)) || + ajv.compile(tool.outputSchema), + ); } let successfulCalls = 0; let rejectedCalls = 0;