From c5476cb4a2e2852a3979f10f7b7eda75da524425 Mon Sep 17 00:00:00 2001 From: G26Karthik Date: Wed, 13 May 2026 19:29:08 +0530 Subject: [PATCH] fix(schema): report example parsing errors in TestValidateConfigExample The validate() function used t.Error(err) where err was the result of extractExamples from an earlier scope. When extractExamples succeeded, err was nil, so t.Error(nil) was a no-op. This caused example parsing failures to be silently ignored rather than failing the test. Use example.Err instead so each example's actual parsing error is reported as a test failure. Signed-off-by: G26Karthik --- schema/example_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema/example_test.go b/schema/example_test.go index 67661cc..d93bde7 100644 --- a/schema/example_test.go +++ b/schema/example_test.go @@ -57,7 +57,7 @@ func validate(t *testing.T, name string) { if example.Err != nil { printFields(t, "error", example.Mediatype, example.Title, example.Err) - t.Error(err) + t.Error(example.Err) continue }