aboutsummaryrefslogtreecommitdiff
path: root/proto/lib.go
diff options
context:
space:
mode:
Diffstat (limited to 'proto/lib.go')
-rw-r--r--proto/lib.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/lib.go b/proto/lib.go
index e22084e..46a4416 100644
--- a/proto/lib.go
+++ b/proto/lib.go
@@ -667,7 +667,7 @@ func buildDefaultMessage(t reflect.Type) (dm defaultMessage) {
}
// scalar fields without defaults
- if prop.Default == "" {
+ if !prop.HasDefault {
dm.scalars = append(dm.scalars, sf)
continue
}