Skip to content

Commit 00754ac

Browse files
authored
Revert "fix getClassType with no readableLink"
1 parent f307998 commit 00754ac

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

TypeFactory.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,11 @@ private function getClassType(?string $className, string $format = 'json', ?bool
9999
return ['type' => 'string'];
100100
}
101101

102-
if (true !== $readableLink) {
103-
if ($this->isResourceClass($className)) {
104-
return [
105-
'type' => 'string',
106-
'format' => 'iri-reference',
107-
];
108-
}
109-
110-
return ['type' => 'string'];
102+
if ($this->isResourceClass($className) && true !== $readableLink) {
103+
return [
104+
'type' => 'string',
105+
'format' => 'iri-reference',
106+
];
111107
}
112108

113109
$version = $schema->getVersion();

0 commit comments

Comments
 (0)