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
…1683)

Co-authored-by: Kevin Kopf <[email protected]>
  • Loading branch information
kevinkopf and Kevin Kopf authored Jan 6, 2025
1 parent b657199 commit 7497d3b
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 7497d3b

Please sign in to comment.