Skip to content

Commit

Permalink
Add extra definitions to vertical_id and orientations fields
Browse files Browse the repository at this point in the history
  • Loading branch information
mreishus committed Nov 8, 2021
1 parent 98b9893 commit 5686e66
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,15 @@ class WPCOM_REST_API_V2_Endpoint_External_Media extends WP_REST_Controller {
'additionalProperties' => false,
'properties' => array(
'vertical_id' => array(
'type' => 'string',
'type' => 'string',
'format' => 'text-field',
),
'pexels_object' => array(
'type' => 'object',
),
'orientations' => array(
'type' => 'array',
'enum' => array( 'landscape', 'portrait', 'square' ),
),
),
),
Expand Down

0 comments on commit 5686e66

Please sign in to comment.