-
Notifications
You must be signed in to change notification settings - Fork 6k
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
[PHP] Class "" not found #12449
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I generated a PHP API Client for the Azuracast API, and it works well, but some endpoints give the error message "
Class "" not found
" when I try to use the API via the client, some classes work without issue, but for example,StationsSongRequestsApi
>getRequestableSongsWithHttpInfo
where it will respond with the error message above. I need it as I can't really utilize the API without it, and I'm not sure what the issue is. I've tried to regenerate the client multiple times, but the issue persists. I'm not sure if it's an issue with the swagger file or the codegen itself.Also, here is the actual project.
Swagger-codegen version
3.0.61
Swagger declaration file content or url
https://raw.githubusercontent.com/AzuraCast/AzuraCast/main/web/static/openapi.yml
Command line used for generation
java -jar swagger-codegen-cli.jar generate -i https://raw.githubusercontent.com/AzuraCast/AzuraCast/main/web/static/openapi.yml -l php -o output/azuracast-php-client3 -c ./config.json
Steps to reproduce
getRequestableSongs
from theStationsSongRequestsApi
classalso here is the config:
Related issues/PRs
#8380
This is the closest issue I could find, but it's not the same issue. (The issue states it returns "Null" but my issue returns an empty string.)
Suggest a fix/enhancement
Not sure what the issue is, but I think it might be an issue with the codegen itself, as the classes are generated, but some of them are not found when trying to use them. I've followed the documentation and the examples provided, but I'm not sure what the issue is.
The error is from: azuracast-php-client\src\ObjectSerializer.php
on line 298, specifically with
The text was updated successfully, but these errors were encountered: