emsifa / evo

Evolve your Laravel code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error generating OpenAPI with circular schema

emsifa opened this issue · comments

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