Default to non-strict

This commit is contained in:
Yann Hamon 2020-05-31 04:36:29 +02:00
parent 1f176b8255
commit c6526d7278
4 changed files with 6 additions and 4 deletions

View file

@ -35,7 +35,7 @@ func (o *TextOutput) Write(filename string, err error, skipped bool) {
}
o.nValid++
case s == INVALID:
fmt.Printf("%s - invalid resource: %s\n",filename, err)
fmt.Printf("%s - invalid resource: %s\n", filename, err)
o.nInvalid++
case s == ERROR:
fmt.Printf("%s - failed validating resource: %s\n", filename, err)

View file

@ -51,7 +51,7 @@ func Validate(rawResource []byte, schema *gojsonschema.Schema) error {
if msg != "" {
msg += " - "
}
msg += errMsg.Description()
msg += errMsg.Description()
}
return InvalidResourceError{err: msg}
}