I'm using Swagger and I want to get with annotations an API doc like that :
"myproperty":{
"nullable": true,
"$ref": "#/components/schemas/MyProperty"
}
So I tried with :
/**
* @var MyProperty|null
*
* @OA\Schema(ref=@Model(type=MyProperty::class), nullable=true)
*/
private $myproperty;
But when I generate my doc.json, I have :
"myproperty": {
"nullable": true,
"allOf": [
{
"$ref": "#/components/schemas/Meta"
}
]
}
Having "$ref" in an array is an issue for me. How could I change that ?