{"action":"closed","issue":{"url":"https://api.github.com/repos/ruby-grape/grape-swagger-entity/issues/13","repository_url":"https://api.github.com/repos/ruby-grape/grape-swagger-entity","labels_url":"https://api.github.com/repos/ruby-grape/grape-swagger-entity/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/ruby-grape/grape-swagger-entity/issues/13/comments","events_url":"https://api.github.com/repos/ruby-grape/grape-swagger-entity/issues/13/events","html_url":"https://github.com/ruby-grape/grape-swagger-entity/issues/13","id":177685199,"number":13,"title":"Conflicts across class namespaces","user":{"login":"dmazan","id":8730296,"avatar_url":"https://avatars.githubusercontent.com/u/8730296?v=3","gravatar_id":"","url":"https://api.github.com/users/dmazan","html_url":"https://github.com/dmazan","followers_url":"https://api.github.com/users/dmazan/followers","following_url":"https://api.github.com/users/dmazan/following{/other_user}","gists_url":"https://api.github.com/users/dmazan/gists{/gist_id}","starred_url":"https://api.github.com/users/dmazan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmazan/subscriptions","organizations_url":"https://api.github.com/users/dmazan/orgs","repos_url":"https://api.github.com/users/dmazan/repos","events_url":"https://api.github.com/users/dmazan/events{/privacy}","received_events_url":"https://api.github.com/users/dmazan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-18T23:33:49Z","updated_at":"2016-09-23T15:02:50Z","closed_at":"2016-09-23T15:02:50Z","body":"When multiple namespaces contain the same entity names, grape-swagger-entity confuses them.  Consider the following example:\r\n\r\nclass Class1\r\n  class Entity < Grape::Entity\r\n    expose :one_thing\r\n  end\r\nend\r\n\r\nclass Class2\r\n  class Entity < Grape::Entity\r\n    expose :another_thing\r\n  end\r\nend\r\n\r\nclass Something < Grape::API\r\n  add_swagger_documentation models: [Class1::Entity, Class2::Entity]\r\nend\r\n\r\ngrape-swagger-entity incorrectly applies Class2::Entity to both models and refers to both a simply \"Entity\".  Change it to Class1::Entity1 and Class2::Entity2 and it works correctly.\r\n\r\nBetter, I think, if the gem understands the Class1::Entity and Class2::Entity are different things and uses their fully-qualified names in the resulting documentation."}}
{"actor":{"display_login":"Bugagazavr"}}