{"action":"opened","issue":{"url":"https://api.github.com/repos/rails/rails/issues/20874","labels_url":"https://api.github.com/repos/rails/rails/issues/20874/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/20874/comments","events_url":"https://api.github.com/repos/rails/rails/issues/20874/events","html_url":"https://github.com/rails/rails/issues/20874","id":94901398,"number":20874,"title":"Double validation errors when using autosave: true","user":{"login":"Linuus","id":379823,"avatar_url":"https://avatars.githubusercontent.com/u/379823?v=3","gravatar_id":"","url":"https://api.github.com/users/Linuus","html_url":"https://github.com/Linuus","followers_url":"https://api.github.com/users/Linuus/followers","following_url":"https://api.github.com/users/Linuus/following{/other_user}","gists_url":"https://api.github.com/users/Linuus/gists{/gist_id}","starred_url":"https://api.github.com/users/Linuus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Linuus/subscriptions","organizations_url":"https://api.github.com/users/Linuus/orgs","repos_url":"https://api.github.com/users/Linuus/repos","events_url":"https://api.github.com/users/Linuus/events{/privacy}","received_events_url":"https://api.github.com/users/Linuus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-14T09:12:47Z","updated_at":"2015-07-14T09:12:47Z","closed_at":null,"body":"Example:\r\n\r\n```ruby\r\nclass User < ActiveRecord::Base\r\n  has_many :licenses\r\n\r\n  validates :name, presence: true\r\n  validates :email, presence: true\r\nend\r\n\r\nclass License < ActiveRecord::Base\r\n  belongs_to :user, autosave: true\r\nend\r\n```\r\n\r\n```ruby\r\nuser = User.new\r\nuser.licenses.build\r\nuser.save\r\n\r\nuser.errors # => #<ActiveModel::Errors:0x007fad846b4ac0 @base=#<User id: nil, name: nil, email: nil, created_at: nil, updated_at: nil>, @messages={:name=>[\"can't be blank\", \"can't be blank\"], :email=>[\"can't be blank\", \"can't be blank\"], :licenses=>[\"is invalid\"]}>\r\n```\r\n\r\nAs you can see, the validation errors show up twice. Is it supposed to be like this or is it a bug?"}}