From 8cb25e39a0067c39577927e5cd79f9f3f3f380db Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 29 Jun 2026 13:57:21 +0000 Subject: [PATCH 1/3] Initial plan From 50cfc62db57cbd862d9f8d0f5875d6467716f62e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 29 Jun 2026 14:01:39 +0000 Subject: [PATCH 2/3] test: use public Ajv import in schema test --- src/schema.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/schema.test.ts b/src/schema.test.ts index 66fc09ed..9635d219 100644 --- a/src/schema.test.ts +++ b/src/schema.test.ts @@ -1,18 +1,18 @@ import * as fs from 'fs'; import * as path from 'path'; import { execFileSync } from 'child_process'; -import Ajv2020 from 'ajv/dist/2020'; +import Ajv from 'ajv'; const schemaPath = path.join(__dirname, '..', 'docs', 'awf-config.schema.json'); describe('awf-config.schema.json', () => { let schema: Record; - let validate: ReturnType; + let validate: ReturnType; beforeAll(() => { const raw = fs.readFileSync(schemaPath, 'utf8'); schema = JSON.parse(raw) as Record; - const ajv = new Ajv2020(); + const ajv = new Ajv({ validateSchema: false }); validate = ajv.compile(schema); }); From 79e11059731406f1d1aace62aec806c03b42f2b8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 29 Jun 2026 15:21:01 +0000 Subject: [PATCH 3/3] test: use Ajv2020 in schema test to match production validator --- src/schema.test.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/schema.test.ts b/src/schema.test.ts index 9635d219..21ebda85 100644 --- a/src/schema.test.ts +++ b/src/schema.test.ts @@ -1,18 +1,19 @@ import * as fs from 'fs'; import * as path from 'path'; import { execFileSync } from 'child_process'; -import Ajv from 'ajv'; +import Ajv2020 from 'ajv/dist/2020'; const schemaPath = path.join(__dirname, '..', 'docs', 'awf-config.schema.json'); describe('awf-config.schema.json', () => { let schema: Record; - let validate: ReturnType; + let validate: ReturnType; beforeAll(() => { const raw = fs.readFileSync(schemaPath, 'utf8'); schema = JSON.parse(raw) as Record; - const ajv = new Ajv({ validateSchema: false }); + const ajv = new Ajv2020({ allErrors: true }); + ajv.addKeyword({ keyword: 'version' }); validate = ajv.compile(schema); });