You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
namespace App\NS1;
use App\NS2\Item;
use OpenApi\Attributes\Property;
use OpenApi\Attributes\Schema;
#[Schema(schema: 'Collection')]
class Collection
{
/**
* @var Item[]|null
*/
#[Property]
public ?array $collection = null;
}
namespace App\NS2;
use OpenApi\Attributes\Property;
use OpenApi\Attributes\Schema;
#[Schema(schema: 'Item')]
class Item
{
/**
* @var string|null
*/
#[Property]
public ?string $propery = null;
}
This will generate schema
There is no "ref" in "items", but it work fine in legacy mode with annotations (openapi -l)
Here will be invalid $refKey value
swagger-php/src/Processors/AugmentProperties.php
Line 96 in eccd81b
Also it is work fine if i specify fully qualified namespace
The text was updated successfully, but these errors were encountered: