1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 05:40:11 +01:00

Add AssertFormat flag to schema compiler

This commit is contained in:
Sascha L. Teichmann 2023-09-30 07:49:44 +02:00
parent 716f128754
commit 3ba37b41c7

View file

@ -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)
}