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.
2 parents 3878ba9 + 2d8e8a4 commit 4cfef51Copy full SHA for 4cfef51
lib/rspec_api_documentation/configuration.rb
@@ -110,7 +110,7 @@ def self.add_setting(name, opts = {})
110
# See RspecApiDocumentation::DSL::Endpoint#do_request
111
add_setting :response_body_formatter, default: Proc.new { |_, _|
112
Proc.new do |content_type, response_body|
113
- if content_type =~ /application\/json/
+ if content_type =~ /application\/.*json/
114
JSON.pretty_generate(JSON.parse(response_body))
115
else
116
response_body
0 commit comments