Skip to content

Commit b01e5dc

Browse files
OpenAPI docs: Fixed schema for /shopping/cart/add endpoint by making license title, description, and range fields optional.
1 parent eb189a6 commit b01e5dc

File tree

1 file changed

+3
-3
lines changed
  • src/packages/next/lib/api/schema/shopping/cart

1 file changed

+3
-3
lines changed

src/packages/next/lib/api/schema/shopping/cart/add.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ export const ShoppingCartAddInputSchema = z
5050
.union([
5151
z
5252
.object({
53-
title: LicenseTitleSchema,
54-
description: LicenseDescriptionSchema,
55-
range: LicenseRangeSchema,
53+
title: LicenseTitleSchema.optional(),
54+
description: LicenseDescriptionSchema.optional(),
55+
range: LicenseRangeSchema.optional(),
5656
period: z.enum(["range", "monthly", "yearly"]).describe(
5757
`Period for which this license is to be applied. If \`range\` is selected,
5858
the \`range\` field must be populated in this request.`,

0 commit comments

Comments
 (0)