Skip to content

Commit 15e996a

Browse files
committed
JsonSchema: fix input metadata when disabled
1 parent 142f7da commit 15e996a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonSchema/SchemaFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ private function getMetadata(string $resourceClass, string $type = Schema::TYPE_
230230
$inputOrOutput = $resourceMetadata->getTypedOperationAttribute($operationType, $operationName, $attribute, ['class' => $resourceClass], true);
231231
}
232232

233-
if (null === ($inputOrOutput['class'] ?? null)) {
233+
if (false === ($inputOrOutput['class'] ?? false)) {
234234
// input or output disabled
235235
return null;
236236
}

0 commit comments

Comments
 (0)