Replace null with [] in /schema field response

This commit is contained in:
Alan Bernstein 2020-08-27 22:38:49 -05:00
parent 659a2bb560
commit 384b6511cd

View file

@ -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, "_") {