Skip to content

Commit

Permalink
Expand on Response annotation warning message.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Kopf committed Jan 3, 2025
1 parent add1c4d commit 63421b8
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 for ' . $this->_context->namespace . '\\' . $this->_context->class . '::' . $this->_context->method);
$valid = false;
}

Expand Down

0 comments on commit 63421b8

Please sign in to comment.