gapic-generator/lib/gapic/schema/api.rb
# Perform a variety of sanity checks on the data, and prints errors to
# the given output as appropriate.
#
# @param output [IO] Stream to write outputs to.
Perform a variety of sanity checks on the data, and prints errors to
the given output as appropriate.
Perform a variety of sanity checks on the data and prints errors to the given output as appropriate .
def sanity_checks output
        addrs = services.map { |service| service.address.join "." }
        configuration[:common_services]&.each do |k, v|
          output.puts "WARNING: configured common service #{k} is not present" unless addrs.include? k
          output.puts "WARNING: configured common service delegate #{v} is not present" unless addrs.include? v
        end
      end
def sanity_checks output addrs = services . map { | service | service . address . join "." } configuration [ :common_services ] &. each do | k , v | output . puts "WARNING: configured common service #{k} is not present" unless addrs . include? k output . puts "WARNING: configured common service delegate #{v} is not present" unless addrs . include? v end end
Perform a variety of sanity checks on the data, and prints errors to
the given output as appropriate.
Perform a variety of sanity checks on the data and prints errors to the given output as appropriate .
output
Stream to write outputs to.
Stream to write outputs to .