Class: Liminal::Openapi::Verification::ExternalReferenceError
- Inherits:
-
InvalidConfigurationError
- Object
- Error
- Error
- Error
- InvalidConfigurationError
- Liminal::Openapi::Verification::ExternalReferenceError
- Defined in:
- lib/liminal/openapi/verification/error.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#sources ⇒ Object
readonly
Returns the value of attribute sources.
Instance Method Summary collapse
-
#initialize(path, sources) ⇒ ExternalReferenceError
constructor
A new instance of ExternalReferenceError.
Constructor Details
#initialize(path, sources) ⇒ ExternalReferenceError
Returns a new instance of ExternalReferenceError.
12 13 14 15 16 17 |
# File 'lib/liminal/openapi/verification/error.rb', line 12 def initialize(path, sources) @path = path @sources = sources.freeze super("OpenAPI verification requires bundled documents without external $ref targets; " \ "#{path} references #{sources.join(', ')}") end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
10 11 12 |
# File 'lib/liminal/openapi/verification/error.rb', line 10 def path @path end |
#sources ⇒ Object (readonly)
Returns the value of attribute sources.
10 11 12 |
# File 'lib/liminal/openapi/verification/error.rb', line 10 def sources @sources end |