Method: CoreLibrary::UnionTypeHelper.process_errors
- Defined in:
- lib/apimatic-core/utilities/union_type_helper.rb
.process_errors(value, union_types, error_messages, is_nested, is_for_one_of) ⇒ Object
255 256 257 258 259 260 261 262 263 264 265 266 267 268 |
# File 'lib/apimatic-core/utilities/union_type_helper.rb', line 255 def self.process_errors(value, union_types, , is_nested, is_for_one_of) << UnionTypeHelper.(union_types).join(', ') unless is_nested UnionTypeHelper.raise_validation_exception( value, union_types, .to_a.join(', '), is_for_one_of ) end end |