{"action":"created","issue":{"url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/738","repository_url":"https://api.github.com/repos/rails-api/active_model_serializers","labels_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/738/labels{/name}","comments_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/738/comments","events_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/738/events","html_url":"https://github.com/rails-api/active_model_serializers/issues/738","id":49683870,"number":738,"title":"Optional attributes","user":{"login":"vasilakisfil","id":590575,"avatar_url":"https://avatars.githubusercontent.com/u/590575?v=3","gravatar_id":"","url":"https://api.github.com/users/vasilakisfil","html_url":"https://github.com/vasilakisfil","followers_url":"https://api.github.com/users/vasilakisfil/followers","following_url":"https://api.github.com/users/vasilakisfil/following{/other_user}","gists_url":"https://api.github.com/users/vasilakisfil/gists{/gist_id}","starred_url":"https://api.github.com/users/vasilakisfil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasilakisfil/subscriptions","organizations_url":"https://api.github.com/users/vasilakisfil/orgs","repos_url":"https://api.github.com/users/vasilakisfil/repos","events_url":"https://api.github.com/users/vasilakisfil/events{/privacy}","received_events_url":"https://api.github.com/users/vasilakisfil/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2014-11-21T11:02:15Z","updated_at":"2016-12-19T19:53:22Z","closed_at":"2016-03-08T20:12:54Z","body":"If I pass an object to the serializer that has less attributes than defined inside the serializer I get 'missing attribute' error. Is there a quick way to remove this error (monkeypatch?) and instead make the serializer to not try to serialize this attribute? It would save me a lot of time and effort since my authorization takes place before the serializer (and slices the record attributes according to current user persmissions). To achieve the same result I will have to define more serializers for the same resource (which could be really ugly when you have many permission levels like in my case!)\n\nI am using 0.9 version.\n"},"comment":{"url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/comments/268061255","html_url":"https://github.com/rails-api/active_model_serializers/issues/738#issuecomment-268061255","issue_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/738","id":268061255,"user":{"login":"NullVoxPopuli","id":199018,"avatar_url":"https://avatars.githubusercontent.com/u/199018?v=3","gravatar_id":"","url":"https://api.github.com/users/NullVoxPopuli","html_url":"https://github.com/NullVoxPopuli","followers_url":"https://api.github.com/users/NullVoxPopuli/followers","following_url":"https://api.github.com/users/NullVoxPopuli/following{/other_user}","gists_url":"https://api.github.com/users/NullVoxPopuli/gists{/gist_id}","starred_url":"https://api.github.com/users/NullVoxPopuli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NullVoxPopuli/subscriptions","organizations_url":"https://api.github.com/users/NullVoxPopuli/orgs","repos_url":"https://api.github.com/users/NullVoxPopuli/repos","events_url":"https://api.github.com/users/NullVoxPopuli/events{/privacy}","received_events_url":"https://api.github.com/users/NullVoxPopuli/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T19:53:22Z","updated_at":"2016-12-19T19:53:22Z","body":"https://github.com/rails-api/active_model_serializers/blob/master/docs/general/rendering.md#fields :-)"}}
{"actor":{"display_login":"NullVoxPopuli"}}