{"action":"created","issue":{"url":"https://api.github.com/repos/ruby-grape/grape/issues/1302","repository_url":"https://api.github.com/repos/ruby-grape/grape","labels_url":"https://api.github.com/repos/ruby-grape/grape/issues/1302/labels{/name}","comments_url":"https://api.github.com/repos/ruby-grape/grape/issues/1302/comments","events_url":"https://api.github.com/repos/ruby-grape/grape/issues/1302/events","html_url":"https://github.com/ruby-grape/grape/issues/1302","id":138548700,"number":1302,"title":"Errors with using entity documentation","user":{"login":"onemanstartup","id":980000,"avatar_url":"https://avatars.githubusercontent.com/u/980000?v=3","gravatar_id":"","url":"https://api.github.com/users/onemanstartup","html_url":"https://github.com/onemanstartup","followers_url":"https://api.github.com/users/onemanstartup/followers","following_url":"https://api.github.com/users/onemanstartup/following{/other_user}","gists_url":"https://api.github.com/users/onemanstartup/gists{/gist_id}","starred_url":"https://api.github.com/users/onemanstartup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onemanstartup/subscriptions","organizations_url":"https://api.github.com/users/onemanstartup/orgs","repos_url":"https://api.github.com/users/onemanstartup/repos","events_url":"https://api.github.com/users/onemanstartup/events{/privacy}","received_events_url":"https://api.github.com/users/onemanstartup/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ruby-grape/grape/labels/bug?","name":"bug?","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-04T18:28:37Z","updated_at":"2016-03-06T14:43:56Z","closed_at":null,"body":"I was trying to migrate my params to using entities and I'm getting different types of errors. Is this grape-entity error or grape?\r\n```ruby\r\n#...\r\n      requires :all, using: Entity::Activity.documentation.except(:id)\r\n#...\r\n```\r\n```ruby\r\nmodule Entity\r\n  class Activity < Base\r\n    expose :id, documentation: {type: 'integer', desc: 'id'}\r\n    expose :active, documentation: {type: 'Boolean', desc: 'id'}\r\n# ...\r\n```\r\nThis is error happens first of all.\r\n```\r\nlib/grape/validations/types.rb:114:in `recognized?': undefined method `ancestors' for \"string\":String (NoMethodError)\r\n```\r\n\r\nThis error happens  when I'm changing type to classes. I get it we don't have Boolean type in ruby and grape uses virtus, but with Integer and String type there is no errors.\r\n```\r\n`<class:Activity>': uninitialized constant Entity::Activity::Boolean (NameError)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ruby-grape/grape/issues/comments/192901345","html_url":"https://github.com/ruby-grape/grape/issues/1302#issuecomment-192901345","issue_url":"https://api.github.com/repos/ruby-grape/grape/issues/1302","id":192901345,"user":{"login":"onemanstartup","id":980000,"avatar_url":"https://avatars.githubusercontent.com/u/980000?v=3","gravatar_id":"","url":"https://api.github.com/users/onemanstartup","html_url":"https://github.com/onemanstartup","followers_url":"https://api.github.com/users/onemanstartup/followers","following_url":"https://api.github.com/users/onemanstartup/following{/other_user}","gists_url":"https://api.github.com/users/onemanstartup/gists{/gist_id}","starred_url":"https://api.github.com/users/onemanstartup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onemanstartup/subscriptions","organizations_url":"https://api.github.com/users/onemanstartup/orgs","repos_url":"https://api.github.com/users/onemanstartup/repos","events_url":"https://api.github.com/users/onemanstartup/events{/privacy}","received_events_url":"https://api.github.com/users/onemanstartup/received_events","type":"User","site_admin":false},"created_at":"2016-03-06T14:43:56Z","updated_at":"2016-03-06T14:43:56Z","body":"@dblock I took this line from readme.\r\n```\r\n      requires :all, except: [:ip], using: API::Entities::Status.documentation.except(:id)\r\n```"}}