Skip to content

Commit

Permalink
Merge pull request #475 from csaf-poc/schema-validation-assert-format
Browse files Browse the repository at this point in the history
Schema validation: Add AssertFormat flag to schema compiler
  • Loading branch information
JanHoefelmeyer authored Oct 4, 2023
2 parents 716f128 + 3ba37b4 commit 666913e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions csaf/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 666913e

Please sign in to comment.