Skip to content
Snippets Groups Projects
Commit 566ead0d authored by inertia's avatar inertia
Browse files

added exception scenario where we have documented definitions but the...

added exception scenario where we have documented definitions but the requested signature returns empty ones
parent a8eae28f
No related branches found
No related tags found
2 merge requests!126HF26 Changes,!125HF26 Changes
......@@ -57,13 +57,26 @@ module Scrape
# puts "D: " + expected_response_json.inspect
next
else
changed = false
if existing_api_method['parameter_json'] == parameter_json &&
existing_api_method['expected_response_json'] == expected_response_json
next
else
existing_api_method['parameter_json'] = parameter_json
existing_api_method['expected_response_json'] = expected_response_json
puts "\tChanged: #{method}"
if existing_api_method['parameter_json'] != '{}' && parameter_json == '{}'
# skip
else
existing_api_method['parameter_json'] = parameter_json
changed = true
end
if existing_api_method['expected_response_json'] != '{}' && expected_response_json == '{}'
# skip
else
existing_api_method['expected_response_json'] = expected_response_json
changed = true
end
puts "\tChanged: #{method}" if changed
end
end
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment