From 7162b8da7e255589c4cf4d331515885bd1a7aaf6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 27 Mar 2026 12:28:41 +0000 Subject: [PATCH] chore: update schema URL to v0.64.2 Pin MCP Gateway JSON schema validation URL to v0.64.2 release tag for reproducible, deterministic configuration validation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- internal/config/rules/rules.go | 2 +- internal/config/validation_schema.go | 2 +- internal/config/validation_schema_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/config/rules/rules.go b/internal/config/rules/rules.go index 82732f5d7..8b7f84bdd 100644 --- a/internal/config/rules/rules.go +++ b/internal/config/rules/rules.go @@ -12,7 +12,7 @@ var log = logger.New("config:rules") // Documentation URL constants const ( ConfigSpecURL = "https://github.com/github/gh-aw/blob/main/docs/src/content/docs/reference/mcp-gateway.md" - SchemaURL = "https://raw.githubusercontent.com/github/gh-aw/v0.64.0/docs/public/schemas/mcp-gateway-config.schema.json" + SchemaURL = "https://raw.githubusercontent.com/github/gh-aw/v0.64.2/docs/public/schemas/mcp-gateway-config.schema.json" ) // ValidationError represents a configuration validation error with context. diff --git a/internal/config/validation_schema.go b/internal/config/validation_schema.go index a1cf906c5..98afd199a 100644 --- a/internal/config/validation_schema.go +++ b/internal/config/validation_schema.go @@ -63,7 +63,7 @@ var ( // Current schema version: v0.50.7 // // Alternative: Embed the schema using go:embed directive for zero network dependency. - schemaURL = "https://raw.githubusercontent.com/github/gh-aw/v0.64.0/docs/public/schemas/mcp-gateway-config.schema.json" + schemaURL = "https://raw.githubusercontent.com/github/gh-aw/v0.64.2/docs/public/schemas/mcp-gateway-config.schema.json" // Schema caching to avoid recompiling the JSON schema on every validation // This improves performance by compiling the schema once and reusing it diff --git a/internal/config/validation_schema_test.go b/internal/config/validation_schema_test.go index ee4236bf5..797a0db30 100644 --- a/internal/config/validation_schema_test.go +++ b/internal/config/validation_schema_test.go @@ -556,7 +556,7 @@ func TestEnhancedErrorMessages(t *testing.T) { "Location:", "Error:", "Details:", - "https://raw.githubusercontent.com/github/gh-aw/v0.64.0/docs/public/schemas/mcp-gateway-config.schema.json", + "https://raw.githubusercontent.com/github/gh-aw/v0.64.2/docs/public/schemas/mcp-gateway-config.schema.json", }, }, {