Class: Openapi3Parser::Validation::ErrorCollection::LocationTypeGroup
- Inherits:
-
Struct
- Object
- Struct
- Openapi3Parser::Validation::ErrorCollection::LocationTypeGroup
- Defined in:
- lib/openapi3_parser/validation/error_collection.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#for_type ⇒ Object
Returns the value of attribute for_type.
-
#source_location ⇒ Object
Returns the value of attribute source_location.
Instance Method Summary collapse
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors
69 70 71 |
# File 'lib/openapi3_parser/validation/error_collection.rb', line 69 def errors @errors end |
#for_type ⇒ Object
Returns the value of attribute for_type
69 70 71 |
# File 'lib/openapi3_parser/validation/error_collection.rb', line 69 def for_type @for_type end |
#source_location ⇒ Object
Returns the value of attribute source_location
69 70 71 |
# File 'lib/openapi3_parser/validation/error_collection.rb', line 69 def source_location @source_location end |
Instance Method Details
#location_summary(with_type: false) ⇒ Object
70 71 72 73 74 |
# File 'lib/openapi3_parser/validation/error_collection.rb', line 70 def location_summary(with_type: false) string = source_location.to_s string << " (as #{for_type})" if with_type && !for_type&.empty? string end |