diff --git a/option/template.go b/option/template.go index 59f2940..d2a6735 100644 --- a/option/template.go +++ b/option/template.go @@ -113,7 +113,7 @@ func (r *RuleSet) UnmarshalJSON(content []byte) error { if r.Type == C.RuleSetTypeGitHub { return option.UnmarshallExcluded(content, (*_RuleSet)(r), &r.GitHubOptions) } else { - return option.UnmarshallExcluded(content, (*_RuleSet)(r), &r.DefaultOptions) + return json.UnmarshalDisallowUnknownFields(content, &r.DefaultOptions) } }