Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check fields type and format #13188

Merged
merged 14 commits into from
Aug 15, 2019
Prev Previous commit
Next Next commit
Add comment
  • Loading branch information
jsoriano committed Aug 7, 2019
commit 95e20038804527b03dece5be53c9c41483824fa4
1 change: 1 addition & 0 deletions libbeat/mapping/field.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ func (f *Field) validateType() error {
case "":
// Module keys, not used as fields
default:
// There are more types, not being used by beats, to be added if needed
return fmt.Errorf("unexpected type '%s' for field '%s'", f.Type, f.Name)
}
return nil
Expand Down