We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f033d89 commit f6c0ce5Copy full SHA for f6c0ce5
lib/jsonapi/renderer/document.rb
@@ -45,7 +45,7 @@ def data_hash
45
46
def errors_hash
47
{}.tap do |hash|
48
- hash[:errors] = @errors.map(&:as_jsonapi)
+ hash[:errors] = @errors.flat_map(&:as_jsonapi)
49
end
50
51
0 commit comments