lib/tomograph/api_blueprint/drafter_4/yaml/action.rb in tomograph-2.5.2 vs lib/tomograph/api_blueprint/drafter_4/yaml/action.rb in tomograph-2.5.3
- old
+ new
@@ -49,10 +49,10 @@
@responses = @content.select do |response|
response['element'] == 'httpResponse' && response['attributes']
end
@responses = @responses.map do |response|
{
- 'status' => response['attributes']['statusCode']['content'],
+ 'status' => response['attributes']['statusCode']['content'].to_s,
'body' => json_schema(response['content']),
'content-type' => response['attributes'].has_key?('headers') ?
response['attributes']['headers']['content'][0]['content']['value']['content'] : nil
}
end