{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/2039","repository_url":"https://api.github.com/repos/swagger-api/swagger-codegen","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/2039/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/2039/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/2039/events","html_url":"https://github.com/swagger-api/swagger-codegen/pull/2039","id":131343144,"number":2039,"title":"FIX: Fixed FLash Client library","user":{"login":"glederrey","id":13273462,"avatar_url":"https://avatars.githubusercontent.com/u/13273462?v=3","gravatar_id":"","url":"https://api.github.com/users/glederrey","html_url":"https://github.com/glederrey","followers_url":"https://api.github.com/users/glederrey/followers","following_url":"https://api.github.com/users/glederrey/following{/other_user}","gists_url":"https://api.github.com/users/glederrey/gists{/gist_id}","starred_url":"https://api.github.com/users/glederrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glederrey/subscriptions","organizations_url":"https://api.github.com/users/glederrey/orgs","repos_url":"https://api.github.com/users/glederrey/repos","events_url":"https://api.github.com/users/glederrey/events{/privacy}","received_events_url":"https://api.github.com/users/glederrey/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/labels/Client:%20Flash","name":"Client: Flash","color":"fad8c7"},{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/labels/Enhancement","name":"Enhancement","color":"e5ffe5"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/milestones/10","html_url":"https://github.com/swagger-api/swagger-codegen/milestones/v2.1.6","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/milestones/10/labels","id":1488305,"number":10,"title":"v2.1.6","description":"","creator":{"login":"fehguy","id":249413,"avatar_url":"https://avatars.githubusercontent.com/u/249413?v=3","gravatar_id":"","url":"https://api.github.com/users/fehguy","html_url":"https://github.com/fehguy","followers_url":"https://api.github.com/users/fehguy/followers","following_url":"https://api.github.com/users/fehguy/following{/other_user}","gists_url":"https://api.github.com/users/fehguy/gists{/gist_id}","starred_url":"https://api.github.com/users/fehguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fehguy/subscriptions","organizations_url":"https://api.github.com/users/fehguy/orgs","repos_url":"https://api.github.com/users/fehguy/repos","events_url":"https://api.github.com/users/fehguy/events{/privacy}","received_events_url":"https://api.github.com/users/fehguy/received_events","type":"User","site_admin":false},"open_issues":65,"closed_issues":139,"state":"open","created_at":"2016-01-06T20:41:39Z","updated_at":"2016-02-04T13:23:49Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2016-02-04T13:16:46Z","updated_at":"2016-02-04T13:44:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/pulls/2039","html_url":"https://github.com/swagger-api/swagger-codegen/pull/2039","diff_url":"https://github.com/swagger-api/swagger-codegen/pull/2039.diff","patch_url":"https://github.com/swagger-api/swagger-codegen/pull/2039.patch"},"body":"Hi,\r\n\r\nI fixed the Flash client library. It had multiple problems.. =) I also added a README.txt that explains how to use it.. (It's a bit more difficult to use than Python..)\r\n\r\n- FlashClientCodegen\r\n   - I changed the architecture to make it look like an ActionScript library project.\r\n   - The Number type in as wasn't recognized by Swagger. (You have Double, Float, Integer, etc.) And since it wasn't recognized, Codegen was putting null as default value for Number. It's wrong. Therefore, I changed it to NaN\r\n- ApiInvoker.as\r\n   - A lot of imports were missing. I added them.\r\n   - Bug at line 102/115 that I fixed\r\n   - I commented a part of the function onApiRequestResult because it was trying to parse the response as a XML. And therefore, we couldn't receive anything if it's in JSON, for example. Therefore, having it RAW is better, for the moment. =)\r\n- ApiUrlHelper.as\r\n   - Small bug at line 34.\r\n- api.mustache\r\n   - Here, I simply removed the DefaultValue. It's just because if we put a DefaultValue, then it means for AS that it's an optional parameter. So, if there is other parameters after one parameter with a DefaultValue, AS will trigger an error because it doesn't accept required parameters after optional ones. \r\n- README.txt\r\n   - Just some explanations.. I hope it will make it more clear how to use it.. I took quite a lot of time to understand how to use it, but I'm not an expert in flash at all.. So, I hope it can help some futur users.. \r\n\r\nThat's everything.. So, I don't really improved this library. But at least, this library generated by Swagger will compile directly and will be ready to be used.. \r\n"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/comments/179847162","html_url":"https://github.com/swagger-api/swagger-codegen/pull/2039#issuecomment-179847162","issue_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/2039","id":179847162,"user":{"login":"glederrey","id":13273462,"avatar_url":"https://avatars.githubusercontent.com/u/13273462?v=3","gravatar_id":"","url":"https://api.github.com/users/glederrey","html_url":"https://github.com/glederrey","followers_url":"https://api.github.com/users/glederrey/followers","following_url":"https://api.github.com/users/glederrey/following{/other_user}","gists_url":"https://api.github.com/users/glederrey/gists{/gist_id}","starred_url":"https://api.github.com/users/glederrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glederrey/subscriptions","organizations_url":"https://api.github.com/users/glederrey/orgs","repos_url":"https://api.github.com/users/glederrey/repos","events_url":"https://api.github.com/users/glederrey/events{/privacy}","received_events_url":"https://api.github.com/users/glederrey/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T13:44:30Z","updated_at":"2016-02-04T13:44:30Z","body":"Okay.. Sorry about that.. \r\nI'll do that next time.. =)"}}