Skip to content

The Open Source DocuSign Alternative.

chore: add openapi description for enterprise field (#1520)

Catalin Pit34c0868d77e7
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.',
+ }),
});
/**