Skip to content

Commit

Permalink
relax validation of nil string fields
Browse files Browse the repository at this point in the history
  • Loading branch information
colindickson committed Aug 4, 2023
1 parent 0c9b892 commit 803e133
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions csvprocessor/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ func (e *Entity) ValidateFields(desc *schema.EntityDesc) error {
return nil
}

if field.Type == "String_" {
return nil
}

return fmt.Errorf("field %q cannot be nil on entity %s at ID %s", field.Name, field.Type, e.Fields["id"])
}
}
Expand Down

0 comments on commit 803e133

Please sign in to comment.