{"action":"closed","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-js/issues/101","labels_url":"https://api.github.com/repos/swagger-api/swagger-js/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-js/issues/101/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-js/issues/101/events","html_url":"https://github.com/swagger-api/swagger-js/issues/101","id":37578094,"number":101,"title":"Unable to pass 'opts' for method invocation (swagger.js)?","user":{"login":"cpedrinaci","id":30415,"avatar_url":"https://avatars.githubusercontent.com/u/30415?v=3","gravatar_id":"","url":"https://api.github.com/users/cpedrinaci","html_url":"https://github.com/cpedrinaci","followers_url":"https://api.github.com/users/cpedrinaci/followers","following_url":"https://api.github.com/users/cpedrinaci/following{/other_user}","gists_url":"https://api.github.com/users/cpedrinaci/gists{/gist_id}","starred_url":"https://api.github.com/users/cpedrinaci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpedrinaci/subscriptions","organizations_url":"https://api.github.com/users/cpedrinaci/orgs","repos_url":"https://api.github.com/users/cpedrinaci/repos","events_url":"https://api.github.com/users/cpedrinaci/events{/privacy}","received_events_url":"https://api.github.com/users/cpedrinaci/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/swagger-api/swagger-js/labels/Feature","name":"Feature","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/swagger-api/swagger-js/milestones/3","labels_url":"https://api.github.com/repos/swagger-api/swagger-js/milestones/3/labels","id":913886,"number":3,"title":"v2.0.48","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":5,"closed_issues":9,"state":"open","created_at":"2014-12-24T02:44:30Z","updated_at":"2015-01-06T15:39:23Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2014-07-10T16:10:03Z","updated_at":"2015-01-06T15:39:23Z","closed_at":"2015-01-06T15:39:23Z","body":"Looking at the code it seems that things like choosing the response or request content types is specified by means of the 'opts' argument (SwaggerRequest).\r\n\r\nThe method 'SwaggerOperation.prototype[\"do\"] = function(args, opts, callback, error)' does contemplate this parameter. It could thus be used directly via code, in principle.\r\n\r\nHowever, the more convenient method 'this.resource[this.nickname] = function(args, callback, error)' seems to drop this parameter. \r\n\r\nAm I missing something? Is this the actual intended use or should the latter method be fixed to include the additional opts parameter? \r\n "}}