Class: Openapi3Parser::Validators::DuplicateParameters

Inherits:
Object
  • Object
show all
Defined in:
lib/openapi3_parser/validators/duplicate_parameters.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.call(resolved_input) ⇒ Object



6
7
8
# File 'lib/openapi3_parser/validators/duplicate_parameters.rb', line 6

def self.call(resolved_input)
  new.call(resolved_input)
end

Instance Method Details

#call(resolved_input) ⇒ Object



10
11
12
13
# File 'lib/openapi3_parser/validators/duplicate_parameters.rb', line 10

def call(resolved_input)
  dupes = duplicate_names_by_in(resolved_input)
  message(dupes) unless dupes.empty?
end