Skip to content

Commit

Permalink
Update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
ryelle committed May 21, 2021
1 parent 7717b19 commit 26ae61e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/class-wp-rest-pattern-directory-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,14 @@ public function get_item_schema() {
'type' => 'integer',
'context' => array( 'view', 'embed' ),
),

'block_types' => array(
'description' => __( 'A list of block types this pattern supports for transforms.', 'gutenberg' ),
'type' => 'array',
'uniqueItems' => true,
'items' => array( 'type' => 'string' ),
'context' => array( 'view', 'embed' ),
),
),
);

Expand Down

0 comments on commit 26ae61e

Please sign in to comment.