forked from vyuldashev/laravel-openapi
-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Description
Sometimes I forget to add the PHPDoc for the "marked" controller action like so
#[OpenApi\Operation]
#[OpenApi\Parameters(UTPHeaderParameters::class)]
#[OpenApi\Response(factory: CustomerResetPasswordValidResponse::class, statusCode: 200)]
#[OpenApi\SecurityRequirement(ApiTokenSecurityScheme::class)]
public function passwordReset(
Request $request,
PianoClient $pianoClient
): JsonResponse {
// something
}
Executing the command results in the error
In OperationsBuilder.php line 79:
Call to a member function getDescription() on null
which doesn't make it blatantly obvious where the PHPDoc is missing.
Metadata
Metadata
Assignees
Labels
No labels