Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Can't decorate Swagger documentation #414

Copy link
Copy link
Closed
@reminec

Description

@reminec
Issue body actions
  1. create a fresh project api-platform 2.1 with composer create-project
  2. Trying to decorate the Swagger documentation following the guide
  3. Get error :
[Symfony\Component\DependencyInjection\Exception\RuntimeException]             
app_1      |     The definition "serializer" has a reference to an abstract definition "abst    
app_1      |     ract.instanceof.AppBundle\Swagger\SwaggerDecorator". Abstract definitions c    
app_1      |     annot be the target of references. 

This MR in docs repository api-platform/docs#267 don't solve the problem.

I setup a repository if you want reproduce the issue :
https://github.com/reminec/api-platform-swagger-decorator-issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.