Skip to content

Commit

Permalink
fix(jsonld): skolem uri template may have a _format
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed Aug 8, 2023
1 parent 7bb92a5 commit d50b744
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 && str_starts_with($operation->getUriTemplate(), SkolemIriConverter::$skolemUriTemplate))) {
return $this->generateSkolemIri($resource, $referenceType, $operation, $context, $resourceClass);
}

Expand Down

0 comments on commit d50b744

Please sign in to comment.