We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a285c4 commit 4fb1a9fCopy full SHA for 4fb1a9f
packages/medusa/src/api/admin/products/validators.ts
@@ -240,7 +240,7 @@ export const CreateProduct = z
240
categories: z.array(IdAssociation).optional(),
241
tags: z.array(IdAssociation).optional(),
242
options: z
243
- .array(z.union([AdminCreateProductOption, z.object({ id: z.string() })]))
+ .array(z.union([AdminCreateProductOption, IdAssociation]))
244
.optional(),
245
variants: z.array(CreateProductVariant).optional(),
246
sales_channels: z.array(z.object({ id: z.string() })).optional(),
0 commit comments