Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

Commit

Permalink
fix validation check
Browse files Browse the repository at this point in the history
  • Loading branch information
Alif Rachmawadi committed Oct 3, 2016
1 parent cec43b7 commit 49802e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions snowboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ func Parse(r io.Reader, engine Parser) (*API, error) {
// Validate validates API Blueprint using selected Parser
func Validate(r io.Reader, engine Checker) (*API, error) {
el, err := validateElement(r, engine)
if err == nil && el.object == nil {
return nil, nil
}

if err != nil {
return nil, err
}
Expand Down

0 comments on commit 49802e0

Please sign in to comment.