OPENi-ict / api-framework

0 stars 2 forks source link

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

Open dmccarthy-dev opened 10 years ago

dmccarthy-dev commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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