From 63421b89a0ecc73b3d5ee2c35c6422f7d5497b66 Mon Sep 17 00:00:00 2001 From: Kevin Kopf Date: Fri, 3 Jan 2025 05:17:53 +0100 Subject: [PATCH] Expand on Response annotation warning message. --- src/Annotations/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Annotations/Response.php b/src/Annotations/Response.php index db3abf14f..47f8d52bb 100644 --- a/src/Annotations/Response.php +++ b/src/Annotations/Response.php @@ -121,7 +121,7 @@ public function validate(array $stack = [], array $skip = [], string $ref = '', $valid = parent::validate($stack, $skip, $ref, $context); if (Generator::isDefault($this->description) && Generator::isDefault($this->ref)) { - $this->_context->logger->warning($this->identity() . ' One of description or ref is required'); + $this->_context->logger->warning($this->identity() . ' One of description or ref is required for ' . $this->_context->namespace . '\\' . $this->_context->class . '::' . $this->_context->method); $valid = false; }