Schema: Attributes are an array of strings

This commit is contained in:
Mike Jolley 2017-11-16 19:44:08 +00:00
parent a32fae4191
commit bdea242019
1 changed files with 3 additions and 0 deletions

View File

@ -1917,6 +1917,9 @@ class WC_REST_Products_Controller extends WC_REST_Legacy_Products_Controller {
'description' => __( 'List of available term names of the attribute.', 'woocommerce' ), 'description' => __( 'List of available term names of the attribute.', 'woocommerce' ),
'type' => 'array', 'type' => 'array',
'context' => array( 'view', 'edit' ), 'context' => array( 'view', 'edit' ),
'items' => array(
'type' => 'string',
),
), ),
), ),
), ),