lib/rspec_api_docs/formatter/resource/example.rb in rspec-api-docs-1.0.0 vs lib/rspec_api_docs/formatter/resource/example.rb in rspec-api-docs-1.1.0

- old
+ new

@@ -131,10 +131,10 @@ body.rewind if body.respond_to?(:rewind) body_content.empty? ? nil : body_content end def response_body(body, content_type:) - unless body.empty? || content_type != 'application/json' + unless body.empty? || !content_type.to_s.include?('json') parsed_body = JSON.parse(body, symbolize_names: true) response_fields.each do |f| unless f.example.nil? DeepHashSet.call(parsed_body, f.scope + [f.name], f.example) end