From c5d6b414007714ab4cc01eebb18b73032ebb9eb2 Mon Sep 17 00:00:00 2001 From: Dmitry Filimonov Date: Fri, 5 Aug 2022 02:28:01 -0700 Subject: [PATCH] chore: allows empty names in names array (#1321) --- packages/pyroscope-models/src/profile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pyroscope-models/src/profile.ts b/packages/pyroscope-models/src/profile.ts index b07fbb696c..de6a093667 100644 --- a/packages/pyroscope-models/src/profile.ts +++ b/packages/pyroscope-models/src/profile.ts @@ -2,7 +2,7 @@ import { z } from 'zod'; import { SpyNameSchema } from './spyName'; export const FlamebearerSchema = z.object({ - names: z.array(z.string().nonempty()), + names: z.array(z.string()), levels: z.array(z.array(z.number())), numTicks: z.number(), maxSelf: z.number(),