diff --git a/src/Controllers/Version1/class-wc-rest-products-v1-controller.php b/src/Controllers/Version1/class-wc-rest-products-v1-controller.php index 73cd14ea769..bf8629b027d 100644 --- a/src/Controllers/Version1/class-wc-rest-products-v1-controller.php +++ b/src/Controllers/Version1/class-wc-rest-products-v1-controller.php @@ -2146,7 +2146,7 @@ class WC_REST_Products_V1_Controller extends WC_REST_Posts_Controller { ), 'images' => array( 'description' => __( 'List of images.', 'woocommerce-rest-api' ), - 'type' => 'object', + 'type' => 'array', 'context' => array( 'view', 'edit' ), 'items' => array( 'type' => 'object', diff --git a/src/Controllers/Version3/class-wc-rest-products-controller.php b/src/Controllers/Version3/class-wc-rest-products-controller.php index 5dcc4cb5e9a..a6401bf6d91 100644 --- a/src/Controllers/Version3/class-wc-rest-products-controller.php +++ b/src/Controllers/Version3/class-wc-rest-products-controller.php @@ -1122,7 +1122,7 @@ class WC_REST_Products_Controller extends WC_REST_Products_V2_Controller { ), 'images' => array( 'description' => __( 'List of images.', 'woocommerce-rest-api' ), - 'type' => 'object', + 'type' => 'array', 'context' => array( 'view', 'edit' ), 'items' => array( 'type' => 'object',