Skip to content
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

Graph API android client no longer building due to problem with swagger JSON #43

Open
dmccarthy-dev opened this issue Oct 20, 2014 · 2 comments
Assignees
Labels

Comments

@dmccarthy-dev
Copy link

Get the following error from the compiled code

[ERROR] /home/vagrant/repos/openi_android_sdk/swagger-codegen/generated-code/android-java/src/main/java/eu/openiict/client/api/BadgeApi.java:[95,28] error: cannot find symbol
[ERROR] class BadgeApi
/home/vagrant/repos/openi_android_sdk/swagger-codegen/generated-code/android-java/src/main/java/eu/openiict/client/api/BadgeApi.java:[126,39] error: cannot find symbol
[ERROR] class BadgeApi
/home/vagrant/repos/openi_android_sdk/swagger-codegen/generated-code/android-java/src/main/java/eu/openiict/client/api/BadgeApi.java:[157,39] error: cannot find symbol

generated source looks like this....

public Badge badgeDetail (undefined id) throws ApiException {

and original swagger looks like this

"parameters": [
{
"paramType": "path",
"required": true,
"name": "id",
"description": "Primary key of resource",
"type": "undefined"
}
],

"type": "undefined" is your problem

@mpetyx
Copy link
Contributor

mpetyx commented Oct 21, 2014

Badge is a special object since we experiment new stuff on that.
Maybe the errors are due to that, so if you could test another one?

@dmccarthy-dev
Copy link
Author

It stops the whole lot from compiling. You just need to set a type for the id. Moist likely string or Integer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants