I can't make friends with NelmioApiDocBundle

Viewed 26
"symfony/symfony": "3.3.*",
"nelmio/api-doc-bundle": "^3.0",
"sensio/framework-extra-bundle": "^5.0",
"php": "7.1"

there is a response

{
  "data": {
    "same":"data"
  },
  "error": {}
}

I do it according to the documentation

  @SWG\Response(
      @SWG\Schema(type="object",
          @SWG\Property(property="data", ref=@Model(type=MyDataClass::class))
      )
  )

but I get an error. What am I doing wrong?

Errors
Resolver error at paths./api/settings/.get.responses.200.schema.$ref
$ref: must be a string (JSON-Ref)
0 Answers
Related