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

Loading…
Cancel
Save