Merge pull request #21589 from woocommerce/fix/rest-api-product-download-id-schema
[REST API] Fixed schema for product's downloads
This commit is contained in:
commit
f55efd9b83
|
@ -514,10 +514,9 @@ class WC_REST_Product_Variations_Controller extends WC_REST_Product_Variations_V
|
||||||
'type' => 'object',
|
'type' => 'object',
|
||||||
'properties' => array(
|
'properties' => array(
|
||||||
'id' => array(
|
'id' => array(
|
||||||
'description' => __( 'File MD5 hash.', 'woocommerce' ),
|
'description' => __( 'File ID.', 'woocommerce' ),
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
'context' => array( 'view', 'edit' ),
|
'context' => array( 'view', 'edit' ),
|
||||||
'readonly' => true,
|
|
||||||
),
|
),
|
||||||
'name' => array(
|
'name' => array(
|
||||||
'description' => __( 'File name.', 'woocommerce' ),
|
'description' => __( 'File name.', 'woocommerce' ),
|
||||||
|
|
|
@ -862,10 +862,9 @@ class WC_REST_Products_Controller extends WC_REST_Products_V2_Controller {
|
||||||
'type' => 'object',
|
'type' => 'object',
|
||||||
'properties' => array(
|
'properties' => array(
|
||||||
'id' => array(
|
'id' => array(
|
||||||
'description' => __( 'File MD5 hash.', 'woocommerce' ),
|
'description' => __( 'File ID.', 'woocommerce' ),
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
'context' => array( 'view', 'edit' ),
|
'context' => array( 'view', 'edit' ),
|
||||||
'readonly' => true,
|
|
||||||
),
|
),
|
||||||
'name' => array(
|
'name' => array(
|
||||||
'description' => __( 'File name.', 'woocommerce' ),
|
'description' => __( 'File name.', 'woocommerce' ),
|
||||||
|
|
|
@ -1882,10 +1882,9 @@ class WC_REST_Products_V1_Controller extends WC_REST_Posts_Controller {
|
||||||
'type' => 'object',
|
'type' => 'object',
|
||||||
'properties' => array(
|
'properties' => array(
|
||||||
'id' => array(
|
'id' => array(
|
||||||
'description' => __( 'File MD5 hash.', 'woocommerce' ),
|
'description' => __( 'File ID.', 'woocommerce' ),
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
'context' => array( 'view', 'edit' ),
|
'context' => array( 'view', 'edit' ),
|
||||||
'readonly' => true,
|
|
||||||
),
|
),
|
||||||
'name' => array(
|
'name' => array(
|
||||||
'description' => __( 'File name.', 'woocommerce' ),
|
'description' => __( 'File name.', 'woocommerce' ),
|
||||||
|
@ -2360,10 +2359,9 @@ class WC_REST_Products_V1_Controller extends WC_REST_Posts_Controller {
|
||||||
'type' => 'object',
|
'type' => 'object',
|
||||||
'properties' => array(
|
'properties' => array(
|
||||||
'id' => array(
|
'id' => array(
|
||||||
'description' => __( 'File MD5 hash.', 'woocommerce' ),
|
'description' => __( 'File ID.', 'woocommerce' ),
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
'context' => array( 'view', 'edit' ),
|
'context' => array( 'view', 'edit' ),
|
||||||
'readonly' => true,
|
|
||||||
),
|
),
|
||||||
'name' => array(
|
'name' => array(
|
||||||
'description' => __( 'File name.', 'woocommerce' ),
|
'description' => __( 'File name.', 'woocommerce' ),
|
||||||
|
|
|
@ -762,10 +762,9 @@ class WC_REST_Product_Variations_V2_Controller extends WC_REST_Products_V2_Contr
|
||||||
'type' => 'object',
|
'type' => 'object',
|
||||||
'properties' => array(
|
'properties' => array(
|
||||||
'id' => array(
|
'id' => array(
|
||||||
'description' => __( 'File MD5 hash.', 'woocommerce' ),
|
'description' => __( 'File ID.', 'woocommerce' ),
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
'context' => array( 'view', 'edit' ),
|
'context' => array( 'view', 'edit' ),
|
||||||
'readonly' => true,
|
|
||||||
),
|
),
|
||||||
'name' => array(
|
'name' => array(
|
||||||
'description' => __( 'File name.', 'woocommerce' ),
|
'description' => __( 'File name.', 'woocommerce' ),
|
||||||
|
|
|
@ -1606,10 +1606,9 @@ class WC_REST_Products_V2_Controller extends WC_REST_Legacy_Products_Controller
|
||||||
'type' => 'object',
|
'type' => 'object',
|
||||||
'properties' => array(
|
'properties' => array(
|
||||||
'id' => array(
|
'id' => array(
|
||||||
'description' => __( 'File MD5 hash.', 'woocommerce' ),
|
'description' => __( 'File ID.', 'woocommerce' ),
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
'context' => array( 'view', 'edit' ),
|
'context' => array( 'view', 'edit' ),
|
||||||
'readonly' => true,
|
|
||||||
),
|
),
|
||||||
'name' => array(
|
'name' => array(
|
||||||
'description' => __( 'File name.', 'woocommerce' ),
|
'description' => __( 'File name.', 'woocommerce' ),
|
||||||
|
|
Loading…
Reference in New Issue