Fix Products Controller images property type

This commit is contained in:
Csaba Maulis 2019-12-12 09:26:18 +08:00 committed by Claudio Sanches
parent 8d2eb27637
commit 1d5e1715d6
2 changed files with 2 additions and 2 deletions

View File

@ -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',

View File

@ -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',