{"action":"created","issue":{"url":"https://api.github.com/repos/civisanalytics/swagger-diff/issues/17","labels_url":"https://api.github.com/repos/civisanalytics/swagger-diff/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/civisanalytics/swagger-diff/issues/17/comments","events_url":"https://api.github.com/repos/civisanalytics/swagger-diff/issues/17/events","html_url":"https://github.com/civisanalytics/swagger-diff/issues/17","id":116599921,"number":17,"title":"NoMethodError 'rindex' for nil with array parameter","user":{"login":"davidvc","id":71551,"avatar_url":"https://avatars.githubusercontent.com/u/71551?v=3","gravatar_id":"","url":"https://api.github.com/users/davidvc","html_url":"https://github.com/davidvc","followers_url":"https://api.github.com/users/davidvc/followers","following_url":"https://api.github.com/users/davidvc/following{/other_user}","gists_url":"https://api.github.com/users/davidvc/gists{/gist_id}","starred_url":"https://api.github.com/users/davidvc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidvc/subscriptions","organizations_url":"https://api.github.com/users/davidvc/orgs","repos_url":"https://api.github.com/users/davidvc/repos","events_url":"https://api.github.com/users/davidvc/events{/privacy}","received_events_url":"https://api.github.com/users/davidvc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-12T17:33:11Z","updated_at":"2015-11-12T21:42:35Z","closed_at":null,"body":"Darn, found another one with the next Swagger output\r\n```\r\nNoMethodError:         NoMethodError: undefined method `rindex' for nil:NilClass\r\n            /Users/dvancouvering/Projects/Ventana/ventana/vendor/swagger-diff/lib/swagger/diff/specification.rb:87:in `refs'\r\n            /Users/dvancouvering/Projects/Ventana/ventana/vendor/swagger-diff/lib/swagger/diff/specification.rb:196:in `block in request_params_inner'\r\n            /Users/dvancouvering/Projects/Ventana/ventana/vendor/swagger-diff/lib/swagger/diff/specification.rb:193:in `each'\r\n            /Users/dvancouvering/Projects/Ventana/ventana/vendor/swagger-diff/lib/swagger/diff/specification.rb:193:in `request_params_inner'\r\n            /Users/dvancouvering/Projects/Ventana/ventana/vendor/swagger-diff/lib/swagger/diff/specification.rb:18:in `block in request_params'\r\n            /Users/dvancouvering/Projects/Ventana/ventana/vendor/swagger-diff/lib/swagger/diff/specification.rb:17:in `each'\r\n            /Users/dvancouvering/Projects/Ventana/ventana/vendor/swagger-diff/lib/swagger/diff/specification.rb:17:in `request_params'\r\n            /Users/dvancouvering/Projects/Ventana/ventana/vendor/swagger-diff/lib/swagger/diff/diff.rb:92:in `block in incompatible_request_params_enumerator'\r\n            /Users/dvancouvering/Projects/Ventana/ventana/vendor/swagger-diff/lib/swagger/diff/diff.rb:138:in `each'\r\n            /Users/dvancouvering/Projects/Ventana/ventana/vendor/swagger-diff/lib/swagger/diff/diff.rb:138:in `each'\r\n            /Users/dvancouvering/Projects/Ventana/ventana/vendor/swagger-diff/lib/swagger/diff/diff.rb:138:in `each'\r\n            /Users/dvancouvering/Projects/Ventana/ventana/vendor/swagger-diff/lib/swagger/diff/diff.rb:138:in `none?'\r\n            /Users/dvancouvering/Projects/Ventana/ventana/vendor/swagger-diff/lib/swagger/diff/diff.rb:138:in `requests_compatible?'\r\n            /Users/dvancouvering/Projects/Ventana/ventana/vendor/swagger-diff/lib/swagger/diff/diff.rb:10:in `compatible?'\r\n```\r\n\r\nI put in a puts statement and this is the parameter that's barfing:\r\n\r\n```#<Swagger::V2::Parameter description=\"object representing list of provider details which will be added to care team\" in=\"body\" name=\"body\" required=true schema=#<Swagger::Schema items=#<Swagger::Schema $ref=\"#/definitions/CareTeamProvider\"> type=\"array\">>```\r\n\r\nI am attaching the full Swagger JSON I am trying to work with \r\n[careteam.txt](https://github.com/civisanalytics/swagger-diff/files/33133/careteam.txt)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/civisanalytics/swagger-diff/issues/comments/156245131","html_url":"https://github.com/civisanalytics/swagger-diff/issues/17#issuecomment-156245131","issue_url":"https://api.github.com/repos/civisanalytics/swagger-diff/issues/17","id":156245131,"user":{"login":"jeffreyc","id":526530,"avatar_url":"https://avatars.githubusercontent.com/u/526530?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffreyc","html_url":"https://github.com/jeffreyc","followers_url":"https://api.github.com/users/jeffreyc/followers","following_url":"https://api.github.com/users/jeffreyc/following{/other_user}","gists_url":"https://api.github.com/users/jeffreyc/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffreyc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffreyc/subscriptions","organizations_url":"https://api.github.com/users/jeffreyc/orgs","repos_url":"https://api.github.com/users/jeffreyc/repos","events_url":"https://api.github.com/users/jeffreyc/events{/privacy}","received_events_url":"https://api.github.com/users/jeffreyc/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T21:42:35Z","updated_at":"2015-11-12T21:42:35Z","body":"> Do you still want them, even though I have verified they all work? I do see how it could have value, but I'm a bit hestitant to share a bunch of our internal API specs :(\r\n\r\nNot at all! I was merely offering to help, so you didn't have to track down any issues. If you've tested and verified things work, great! I will happily release 1.0.5, with confidence that you won't encounter further problems as you test the rest of your specifications :)\r\n\r\nAlso, please feel free to edit your existing comments to remove your API specifications, and to provide dummy examples for any future issues. Being able to recreate the issue is very helpful, but we definitely don't need any private specifications.\r\n\r\n> Also, one other question: swagger-rb gem didn't support \"deprecated\". I have a local fix and submitted a pull request that hasn't been accepted. It looks like you fixed that. If I got the latest swagger-rb gem would it contain that fix? I don't see a commit that looks like what we need...\r\n\r\nAlas, we worked around it by monkey patching your PR into swagger-rb. I don't know if swagger-rb is being actively maintained, but, with one small change, it met our needs perfectly, and I'm unaware of any other Ruby Swagger parsers."}}