Not sure why I changed this return statement
continuous-integration/drone/tag Build is passing Details

main v0.1.6
Nick Dumas 2 years ago
parent 3036a6a717
commit 5813113d9f

@ -35,7 +35,11 @@ func Validate(schemaURL string, r io.Reader) error {
return fmt.Errorf("error compiling schema: %w", err)
}
return fmt.Errorf("frontmatter failed validation: %w", schema.Validate(frontmatter))
if err != nil {
return fmt.Errorf("frontmatter failed validation: %w", schema.Validate(frontmatter))
}
return nil
}
func recurseDetails(detailed jsonschema.Detailed, acc map[string]jsonschema.Detailed) map[string]jsonschema.Detailed {

Loading…
Cancel
Save