public function get_item_schema() { if ( $this->schema
) { return $this->
add_additional_fields_schema( $this->schema
);
} $types = array
();
$subtypes = array
();
foreach ( $this->search_handlers
as $search_handler ) { $types[] =
$search_handler->
get_type();
$subtypes =
array_merge( $subtypes,
$search_handler->
get_subtypes() );
} $types =
array_unique( $types );
$subtypes =
array_unique( $subtypes );
$schema = array
( '$schema' => 'http://json-schema.org/draft-04/schema#',
'title' => 'search-result',
'type' => 'object',
'properties' => array
( self::PROP_ID => array
(