build_elasticsearch_specification

in report/reporter.rb [52:65]


    def build_elasticsearch_specification
      JSON.parse(File.read('./tmp/schema.json'))['endpoints'].map do |spec|
        if spec['name'].start_with?('_')
          @internal << { name: spec['name'], reason: 'Internal API' }
        elsif (skippable = EXCLUDED_APIS.select { |api| spec['name'].match? api[:name] }.first)
          @internal << skippable
        elsif spec.dig('availability', 'stack', 'visibility') == 'private'
          @internal << { name: spec['name'], reason: 'Private API' }
        else
          @endpoints << ApiEndpoint.new(spec)
        end
      end
    end