fixed outputting success message on failure

pull/13541/head
Steven Powell 2022-02-02 13:54:38 -08:00
parent 1b10eb02d9
commit f464ec9df4
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ func validateSchema(schemaPathString, docPathString string) {
if err = sch.Validate(v); err != nil {
fmt.Printf("The document %s is invalid, see errors:\n%#v", docPathString, err)
return
}
fmt.Printf("The document %s is valid\n", docPathString)