Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka authored Oct 26, 2024
1 parent 63866b1 commit d54b575
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ public function create(string $resourceClass): ResourceMetadataCollection

private function addSchemaValidation(Parameter $parameter, ?array $schema = null, ?bool $required = null, ?OpenApiParameter $openApi = null): Parameter
{
$constraints = $parameter->getConstraints();

if (\is_array($constraints) && \count($constraints) > 0) {
if (null !== $parameter->getConstraints()) {
return $parameter;
}

Expand Down

0 comments on commit d54b575

Please sign in to comment.