We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 077b64a commit 4ceda48Copy full SHA for 4ceda48
lib/jsonapi/utils/response/formatters.rb
@@ -16,7 +16,7 @@ def jsonapi_format(records, options = {})
16
def jsonapi_format_errors(data)
17
data = JSONAPI::Utils::Exceptions::ActiveRecord.new(data) if data.is_a?(ActiveRecord::Base)
18
errors = data.respond_to?(:errors) ? data.errors : data
19
- JSONAPI::Utils::Support::Error.sanitize(errors)
+ JSONAPI::Utils::Support::Error.sanitize(errors).uniq
20
end
21
22
protected
0 commit comments