lib/rspec_api_docs/formatter/resource/example.rb in rspec-api-docs-0.10.0 vs lib/rspec_api_docs/formatter/resource/example.rb in rspec-api-docs-0.11.0
- old
+ new
@@ -128,9 +128,12 @@
response_fields.each do |f|
unless f.example.nil?
DeepHashSet.call(parsed_body, f.scope + [f.name], f.example)
end
end
+ if metadata[:response_body_after_hook]
+ parsed_body = metadata[:response_body_after_hook].call(parsed_body)
+ end
JSON.dump(parsed_body)
end
end
def response_status_text(status)