From 384b6511cd22d494f8aa048aaafa8528ca3bae51 Mon Sep 17 00:00:00 2001 From: Alan Bernstein Date: Thu, 27 Aug 2020 22:38:49 -0500 Subject: [PATCH] Replace null with [] in /schema field response --- holder.go | 1 + 1 file changed, 1 insertion(+) diff --git a/holder.go b/holder.go index abe21b9ce..c531039a4 100644 --- a/holder.go +++ b/holder.go @@ -756,6 +756,7 @@ func (h *Holder) limitedSchema() []*IndexInfo { CreatedAt: index.CreatedAt(), Options: index.Options(), ShardWidth: ShardWidth, + Fields: make([]*FieldInfo, 0, len(index.Fields())), } for _, field := range index.Fields() { if strings.HasPrefix(field.name, "_") {