Skip to content

Commit

Permalink
fix(jsonld): skolem uri template may have a _format (#5729)
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka authored Aug 8, 2023
1 parent 7bb92a5 commit ebf0310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Routing/IriConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function getIriFromResource(object|string $resource, int $referenceType =
}
}

if (!$operation->getName() || ($operation instanceof HttpOperation && SkolemIriConverter::$skolemUriTemplate === $operation->getUriTemplate())) {
if (!$operation->getName() || ($operation instanceof HttpOperation && $operation->getUriTemplate() && str_starts_with($operation->getUriTemplate(), SkolemIriConverter::$skolemUriTemplate))) {
return $this->generateSkolemIri($resource, $referenceType, $operation, $context, $resourceClass);
}

Expand Down

0 comments on commit ebf0310

Please sign in to comment.