lib/tomograph/openapi/openapi2.rb in tomograph-3.1.4 vs lib/tomograph/openapi/openapi2.rb in tomograph-3.1.5
- old
+ new
@@ -26,18 +26,18 @@
def responses(resp, defi)
resp.inject([]) do |result, reponse|
if reponse[1]['schema']
result.push(
- status: reponse[0],
- body: schema(reponse[1]['schema'], defi),
- 'content-type': ''
+ 'status' => reponse[0],
+ 'body' => schema(reponse[1]['schema'], defi),
+ 'content-type' => 'application/json'
)
else
result.push(
- status: reponse[0],
- body: {},
- 'content-type': ''
+ 'status' => reponse[0],
+ 'body' => {},
+ 'content-type' => 'application/json'
)
end
end
end