From fa82b28c8256bddc6a71ddc7a15a8f3caa5016f9 Mon Sep 17 00:00:00 2001 From: colindickson Date: Sat, 5 Aug 2023 12:30:40 -0400 Subject: [PATCH] skip boolean nil check --- csvprocessor/entity.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/csvprocessor/entity.go b/csvprocessor/entity.go index d0babe5..a08f358 100644 --- a/csvprocessor/entity.go +++ b/csvprocessor/entity.go @@ -47,6 +47,10 @@ func (e *Entity) ValidateFields(desc *schema.EntityDesc) error { return nil } + if field.Type == "Boolean" { + return nil + } + return fmt.Errorf("field %q cannot be nil on entity %s at ID %s", field.Name, field.Type, e.Fields["id"]) } }