Skip to content

Commit c38a207

Browse files
committed
remove required property from create sku response type since its an error
1 parent dbfbcb1 commit c38a207

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/api/resources/products/types/ProductsCreateSkuResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
import * as Webflow from "../../../index";
66

77
export interface ProductsCreateSkuResponse {
8-
skus: Webflow.Sku[];
8+
skus?: Webflow.Sku[];
99
}

src/serialization/resources/products/types/ProductsCreateSkuResponse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ export const ProductsCreateSkuResponse: core.serialization.ObjectSchema<
1111
serializers.ProductsCreateSkuResponse.Raw,
1212
Webflow.ProductsCreateSkuResponse
1313
> = core.serialization.object({
14-
skus: core.serialization.list(Sku),
14+
skus: core.serialization.list(Sku).optional(),
1515
});
1616

1717
export declare namespace ProductsCreateSkuResponse {
1818
interface Raw {
19-
skus: Sku.Raw[];
19+
skus?: Sku.Raw[] | null;
2020
}
2121
}

0 commit comments

Comments
 (0)