-
-
Notifications
You must be signed in to change notification settings - Fork 926
Closed
Description
API Platform version(s) affected: 2.5.4 (from commit baf0542)
Description / How to reproduce
Loading the api docs causes several "class not found" ReflectionExceptions.
Possibly related to #3344
Possible Solution
Seems to be related to src/JsonSchema/TypeFactory:102
. If the check in changed from and to or, everything works (working example below)
if ($this->isResourceClass($className) || true !== $readableLink) {
return [
'type' => 'string',
'format' => 'iri-reference',
];
}
Unfortunately I don't know the internals enough to know if this breaks anything.
zakjakub, emmanuelballery, David-Crty, soullivaneuh, amasotti and 1 more