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:
parent
716f128754
commit
3ba37b41c7
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue