Skip to content

Commit

Permalink
turn on strict validation
Browse files Browse the repository at this point in the history
  • Loading branch information
dims committed Jan 18, 2020
1 parent 832d8f4 commit 0fb11be
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@
[._]s[a-w][a-z]
*.un~
Session.vim
.netrwhist
.netrwhist

# Files generated by JetBrains IDEs, e.g. IntelliJ IDEA
.idea/
2 changes: 1 addition & 1 deletion cmd/kepval/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ func run() int {
return 1
}

fmt.Println("No validation errors")
fmt.Printf("No validation errors : %v\n", os.Args[1:])
return 0
}
2 changes: 1 addition & 1 deletion pkg/kepval/keps/proposals.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,6 @@ func (p *Parser) Parse(in io.Reader) *Proposal {
return proposal
}

proposal.Error = yaml.Unmarshal(metadata, proposal)
proposal.Error = yaml.UnmarshalStrict(metadata, proposal)
return proposal
}

0 comments on commit 0fb11be

Please sign in to comment.