Skip to content

Commit

Permalink
Upgrade the Response warning message to include the debug location.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkopf committed Jan 5, 2025
1 parent add1c4d commit 1475d41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Annotations/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1475d41

Please sign in to comment.