Sha256: 7c5a0652f57f36d2a50bb2dc65a17b8dfd969b5af2981c165ce8cdb879dd61e2
Contents?: true
Size: 557 Bytes
Versions: 1
Compression:
Stored size: 557 Bytes
Contents
require 'api-tester/reporter/missing_response_field_report' require 'api-tester/modules/module' module ApiTester class UnusedFields < Module def go definition, report super definition.methods.each do |method| method.expected_response.body.each do |field| if field.is_seen == 0 report.add_new_report MissingResponseFieldReport.new(definition.url, method.verb, field.name, "UnusedFieldsModule") end end end report.reports == [] end def order 99 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
api-tester-0.2.0 | lib/api-tester/modules/unused_fields.rb |