Skip to content

Commit

Permalink
Validate specific-datum records using the basic way.
Browse files Browse the repository at this point in the history
  • Loading branch information
arunmk committed Jun 2, 2015
1 parent 7eb45b4 commit 1dd4841
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,9 @@ func (rs *RecordSchema) Validate(v reflect.Value) bool {
}
rec, ok := v.Interface().(GenericRecord)
if !ok {
return false
// This is not a generic record and is likely a specific record. Hence
// use the basic check.
return v.Kind() == reflect.Struct
}

field_count := 0
Expand Down

0 comments on commit 1dd4841

Please sign in to comment.