New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The operation "api_users_notifications_get_subresource" cannot be found in the Swagger specification. #3973
Comments
I have a probably related error, I was calling a subresource in a URL:
and it was working well, after the upgrade to 2.6 there's this message in the json response:
After some debugging If found the Symfony\Component\Cache\Adapter\AbstractAdapter error:
I think something change in the exception listener in api platform. |
I've found this in my
I don't understand why |
Yes, I confirm I have the same issue, the string |
https://github.com/api-platform/core/blob/v2.6.1/src/OpenApi/Factory/OpenApiFactory.php#L150 A subresource operation has no |
This must be related with #4004 |
Fixed here too! Thanks api team! |
Can someone add more details how exactly this is or can be fixed? I still see this with APIP v2.6.8 as soon as there is no format in the URL and an |
@mbrodala does there a hack to make this work on 2.6.8 ? |
Not sure but AFAIR it wasn't that much of an issue for us in the end. At least I can barely remember it. 😅 |
API Platform version(s) affected: 2.6.0. Symfony 5.2.1.
Description
✅
curl -X GET "https://localhost:8000/api/users/20/notifications.json?page=1&itemsPerPage=10"
✅
curl -X GET "https://localhost:8000/api/users/20/notifications?page=1&itemsPerPage=10" -H "accept: application/ld+json"
❌
curl -X GET "https://localhost:8000/api/users/20/notifications?page=1&itemsPerPage=10" -H "accept: text/html"
This is what I found in my logs:
Additional Context
The text was updated successfully, but these errors were encountered: