From 3ba37b41c7bebbe8bcbf7c551ac6215680153308 Mon Sep 17 00:00:00 2001 From: "Sascha L. Teichmann" Date: Sat, 30 Sep 2023 07:49:44 +0200 Subject: [PATCH] Add AssertFormat flag to schema compiler --- csaf/validation.go | 1 + 1 file changed, 1 insertion(+) diff --git a/csaf/validation.go b/csaf/validation.go index 848b12b..ebfdeff 100644 --- a/csaf/validation.go +++ b/csaf/validation.go @@ -92,6 +92,7 @@ func loadURL(s string) (io.ReadCloser, error) { func (cs *compiledSchema) compile() { c := jsonschema.NewCompiler() + c.AssertFormat = true c.LoadURL = loadURL cs.compiled, cs.err = c.Compile(cs.url) }