From 34c0868d77e7eb685315826a91f4842f116c94a2 Mon Sep 17 00:00:00 2001 From: Catalin Pit <25515812+catalinpit@users.noreply.github.com> Date: Tue, 10 Dec 2024 11:26:28 +0200 Subject: [PATCH] chore: add openapi description for enterprise field (#1520) --- packages/api/v1/schema.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/api/v1/schema.ts b/packages/api/v1/schema.ts index 980687356..fa0276a9d 100644 --- a/packages/api/v1/schema.ts +++ b/packages/api/v1/schema.ts @@ -161,7 +161,10 @@ export const ZCreateDocumentMutationSchema = z.object({ globalAccessAuth: ZDocumentAccessAuthTypesSchema.optional(), globalActionAuth: ZDocumentActionAuthTypesSchema.optional(), }) - .optional(), + .optional() + .openapi({ + description: 'The globalActionAuth property is only available for Enterprise accounts.', + }), formValues: z.record(z.string(), z.union([z.string(), z.boolean(), z.number()])).optional(), }); @@ -325,7 +328,10 @@ export const ZCreateRecipientMutationSchema = z.object({ .object({ actionAuth: ZRecipientActionAuthTypesSchema.optional(), }) - .optional(), + .optional() + .openapi({ + description: 'The authOptions property is only available for Enterprise accounts.', + }), }); /**