It'd be nice if a DTO could contain multiple levels.
For example:
#[OpenApiSchema]
class Nested
{
public function __construct(
#[OpenApiSchemaProperty(name: 'name')]
public string $name,
#[OpenApiSchemaProperty(name: 'other', type: 'object')]
public OtherDto $other
)
{
}
}
At the moment such a class is rendered like this in the SwaggerUI:

OtherDto should also be able to contain multiple level, resulting in a json tree for a a request,
It'd be nice if a DTO could contain multiple levels.
For example:
At the moment such a class is rendered like this in the SwaggerUI:
OtherDto should also be able to contain multiple level, resulting in a json tree for a a request,