lib/swagalicious/example_helpers.rb in swagalicious-1.1.0 vs lib/swagalicious/example_helpers.rb in swagalicious-1.1.1
- old
+ new
@@ -98,10 +98,10 @@
body = "---" if self.body.empty?
(YAML.load(self.body) || {}).with_indifferent_access
when /xml/
(Ox.load(self.body, mode: :hash_no_attrs) || {}).with_indifferent_access
- when "", nil
+ when "", nil, /html/
self.body
else
return unless raise_on_invalid
Swagalicious::ExampleHelpers.raise_invalid_response(response: response, request: request, message: "Invalid Content-Type header #{response.headers["Content-Type"]}")