civisanalytics / swagger-diff

Utility for comparing two Swagger specifications.
BSD 3-Clause "New" or "Revised" License
264 stars 32 forks source link

undefined method `rindex' for nil:NilClass (NoMethodError) #40

Closed AntonBakaev closed 7 years ago

AntonBakaev commented 7 years ago

Hello, I have a problem with comparing two schemes: undefined method `rindex' for nil:NilClass (NoMethodError)

I'm attaching two schemes and error text. files.zip

jeffreyc commented 7 years ago

Thank you for your feedback! From your stack trace, it looks like you're using Swagger::Diff 1.0.2. Swagger::Diff is up to 1.1.0, and several bugs have been fixed since 1.0.2. I don't have any issues comparing the attached specifications using 1.1.0, so upgrading should resolve your issue.

I'm going to close this issue, but please comment on this issue or file another issue as appropriate if you encounter any other problems with Swagger::Diff.

AntonBakaev commented 7 years ago

Thank you for help, now I have no problems with swagger-diff.