Skip to content

Commit cc3bbd7

Browse files
Fix issue #9
It's the least I can do for opening it in the first place.
1 parent da207c4 commit cc3bbd7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/jsonapi_spec_helpers/helpers.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def json_ids(integers = false)
5656

5757
def validation_errors
5858
@validation_errors ||= {}.tap do |errors|
59+
return if json['errors'].nil?
5960
json['errors'].each do |e|
6061
attr = e['meta']['attribute'].to_sym
6162
message = e['meta']['message']

0 commit comments

Comments
 (0)