REST API: Correct the schema for the wp/v2/block-directory/search endpoint.

Props zieladam, TimothyBlynJacobs, spacedmonkey, johnbillion

Fixes #53621


git-svn-id: https://develop.svn.wordpress.org/trunk@53315 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2022-04-29 16:53:55 +00:00
parent f4416e018d
commit 5612331504
2 changed files with 43 additions and 3 deletions
@@ -239,7 +239,7 @@ class WP_REST_Block_Directory_Controller extends WP_REST_Controller {
),
'rating' => array(
'description' => __( 'The star rating of the block.' ),
'type' => 'integer',
'type' => 'number',
'context' => array( 'view' ),
),
'rating_count' => array(
@@ -249,12 +249,12 @@ class WP_REST_Block_Directory_Controller extends WP_REST_Controller {
),
'active_installs' => array(
'description' => __( 'The number sites that have activated this block.' ),
'type' => 'string',
'type' => 'integer',
'context' => array( 'view' ),
),
'author_block_rating' => array(
'description' => __( 'The average rating of blocks published by the same author.' ),
'type' => 'integer',
'type' => 'number',
'context' => array( 'view' ),
),
'author_block_count' => array(