Method: Openapi3Parser::Validation::ErrorCollection.combine

Defined in:
lib/openapi3_parser/validation/error_collection.rb

.combine(errors, other_errors) ⇒ ErrorCollection

Combines ErrorCollection objects or arrays of Validation::Error objects

Parameters:

Returns:



14
15
16
# File 'lib/openapi3_parser/validation/error_collection.rb', line 14

def self.combine(errors, other_errors)
  new(errors.to_a + other_errors.to_a)
end