diff --git a/includes/api/class-wc-rest-coupons-controller.php b/includes/api/class-wc-rest-coupons-controller.php index 99e295e93c0..d7d510ab42d 100644 --- a/includes/api/class-wc-rest-coupons-controller.php +++ b/includes/api/class-wc-rest-coupons-controller.php @@ -509,7 +509,7 @@ class WC_REST_Coupons_Controller extends WC_REST_Posts_Controller { 'properties' => array( 'id' => array( 'description' => __( 'Meta ID.', 'woocommerce' ), - 'type' => 'int', + 'type' => 'integer', 'context' => array( 'view', 'edit' ), 'readonly' => true, ), diff --git a/includes/api/class-wc-rest-customers-controller.php b/includes/api/class-wc-rest-customers-controller.php index ba72aefc561..7fccabe1239 100644 --- a/includes/api/class-wc-rest-customers-controller.php +++ b/includes/api/class-wc-rest-customers-controller.php @@ -804,7 +804,7 @@ class WC_REST_Customers_Controller extends WC_REST_Controller { 'properties' => array( 'id' => array( 'description' => __( 'Meta ID.', 'woocommerce' ), - 'type' => 'int', + 'type' => 'integer', 'context' => array( 'view', 'edit' ), 'readonly' => true, ), diff --git a/includes/api/class-wc-rest-order-notes-controller.php b/includes/api/class-wc-rest-order-notes-controller.php index b8b1dbaa9c6..aa6362d9d10 100644 --- a/includes/api/class-wc-rest-order-notes-controller.php +++ b/includes/api/class-wc-rest-order-notes-controller.php @@ -392,7 +392,7 @@ class WC_REST_Order_Notes_Controller extends WC_REST_Controller { public function get_item_schema() { $schema = array( '$schema' => 'http://json-schema.org/draft-04/schema#', - 'title' => 'tax', + 'title' => 'order_note', 'type' => 'object', 'properties' => array( 'id' => array( diff --git a/includes/api/class-wc-rest-order-refunds-controller.php b/includes/api/class-wc-rest-order-refunds-controller.php index f7f4af67ae0..f70bde9f48d 100644 --- a/includes/api/class-wc-rest-order-refunds-controller.php +++ b/includes/api/class-wc-rest-order-refunds-controller.php @@ -329,7 +329,7 @@ class WC_REST_Order_Refunds_Controller extends WC_REST_Orders_Controller { ), 'refunded_by' => array( 'description' => __( 'User ID of user who created the refund.', 'woocommerce' ), - 'type' => 'int', + 'type' => 'integer', 'context' => array( 'view' ), ), 'meta_data' => array( @@ -341,7 +341,7 @@ class WC_REST_Order_Refunds_Controller extends WC_REST_Orders_Controller { 'properties' => array( 'id' => array( 'description' => __( 'Meta ID.', 'woocommerce' ), - 'type' => 'int', + 'type' => 'integer', 'context' => array( 'view', 'edit' ), 'readonly' => true, ), @@ -453,7 +453,7 @@ class WC_REST_Order_Refunds_Controller extends WC_REST_Orders_Controller { 'properties' => array( 'id' => array( 'description' => __( 'Meta ID.', 'woocommerce' ), - 'type' => 'int', + 'type' => 'integer', 'context' => array( 'view', 'edit' ), 'readonly' => true, ), diff --git a/includes/api/class-wc-rest-orders-controller.php b/includes/api/class-wc-rest-orders-controller.php index 7bdf68f3eb3..c77b3b274f4 100644 --- a/includes/api/class-wc-rest-orders-controller.php +++ b/includes/api/class-wc-rest-orders-controller.php @@ -1067,7 +1067,7 @@ class WC_REST_Orders_Controller extends WC_REST_Posts_Controller { 'properties' => array( 'id' => array( 'description' => __( 'Meta ID.', 'woocommerce' ), - 'type' => 'int', + 'type' => 'integer', 'context' => array( 'view', 'edit' ), 'readonly' => true, ), @@ -1179,7 +1179,7 @@ class WC_REST_Orders_Controller extends WC_REST_Posts_Controller { 'properties' => array( 'id' => array( 'description' => __( 'Meta ID.', 'woocommerce' ), - 'type' => 'int', + 'type' => 'integer', 'context' => array( 'view', 'edit' ), 'readonly' => true, ), @@ -1299,7 +1299,7 @@ class WC_REST_Orders_Controller extends WC_REST_Posts_Controller { 'properties' => array( 'id' => array( 'description' => __( 'Meta ID.', 'woocommerce' ), - 'type' => 'int', + 'type' => 'integer', 'context' => array( 'view', 'edit' ), 'readonly' => true, ), @@ -1385,7 +1385,7 @@ class WC_REST_Orders_Controller extends WC_REST_Posts_Controller { 'properties' => array( 'id' => array( 'description' => __( 'Meta ID.', 'woocommerce' ), - 'type' => 'int', + 'type' => 'integer', 'context' => array( 'view', 'edit' ), 'readonly' => true, ), @@ -1483,7 +1483,7 @@ class WC_REST_Orders_Controller extends WC_REST_Posts_Controller { 'properties' => array( 'id' => array( 'description' => __( 'Meta ID.', 'woocommerce' ), - 'type' => 'int', + 'type' => 'integer', 'context' => array( 'view', 'edit' ), 'readonly' => true, ), @@ -1541,7 +1541,7 @@ class WC_REST_Orders_Controller extends WC_REST_Posts_Controller { 'properties' => array( 'id' => array( 'description' => __( 'Meta ID.', 'woocommerce' ), - 'type' => 'int', + 'type' => 'integer', 'context' => array( 'view', 'edit' ), 'readonly' => true, ),