From 1475d41e0b5d7f40fe17e41cc000212c77409a9d Mon Sep 17 00:00:00 2001 From: Kevin Kopf Date: Fri, 3 Jan 2025 05:17:53 +0100 Subject: [PATCH] Upgrade the Response warning message to include the debug location. --- 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..0fcb210f0 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 in ' . $this->_context->getDebugLocation()); $valid = false; }