Fixed a bug where API endpoints that return a `Repository` did not properly include the repository's object format.