https://symfony.com/bundles/NelmioApiDocBundle/current/index.html Я тут упомянул, что не люблю огромные атрибуты поверх роутера. На самом деле, у пакета давно уже есть более адекватный способ: #[OAResponse( response: 200, description: 'Returns the rewards of a user', content: new OAJsonContent( type: 'array', items: new OAItems(ref: new Model(type: AlbumDto::class, groups: ['full'])) ) )] public function fetchUserRewardsAction(User $user) Обращаем внимание на new Model - вместо нудного описания блока items можно сослаться на сущность.