feat: add `items` property on get respository schema

This commit is contained in:
vnmedeiros 2023-06-26 12:18:03 -03:00
parent 606f8ab116
commit 7cebd434b2
1 changed files with 3 additions and 0 deletions

View File

@ -627,6 +627,9 @@ class REST_Controller extends \WP_REST_Controller {
'description' => $value['description'],
'type' => $value['type']
];
if( isset($value['items'])) {
$schema[$mapped]['items'] = $value['items'];
}
}
return $schema;