'object', 'properties' => [ 'url' => [ 'type' => 'string', 'format' => 'uri', 'description' => __( 'The URL to the full size version of the image', 'tribe-common' ), ], 'id' => [ 'type' => 'integer', 'description' => __( 'The image WordPress post ID', 'tribe-common' ), ], 'extension' => [ 'type' => 'string', 'description' => __( 'The image file extension', 'tribe-common' ), ], 'width' => [ 'type' => 'integer', 'description' => __( 'The image natural width in pixels', 'tribe-common' ), ], 'height' => [ 'type' => 'integer', 'description' => __( 'The image natural height in pixels', 'tribe-common' ), ], 'sizes' => [ 'type' => 'array', 'description' => __( 'The details about each size available for the image', 'tribe-common' ), 'items' => [ '$ref' => '#/components/schemas/ImageSize', ], ], ], ]; /** * Filters the Swagger documentation generated for an image deatails in the TEC REST API. * * @param array $documentation An associative PHP array in the format supported by Swagger. * * @link http://swagger.io/ */ $documentation = apply_filters( 'tribe_rest_swagger_image_details_documentation', $documentation ); return $documentation; } }