Error generating OpenAPI with circular schema
emsifa opened this issue · comments
Muhammad Syifa commented
For example we have response:
class FooResponse extends JsonResponse
{
#[ArrayOf(CategoryDto::class)]
public array $categories;
}
CategoryDto:
class CategoryDto extends ResponseDto
{
public int $id;
public string $name;
#[ArrayOf(CategoryDto::class)]
public array $children;
}
It throws error 500 with blank response