Class: Liminal::Openapi::Verification::ExternalReferenceError

Inherits:
InvalidConfigurationError show all
Defined in:
lib/liminal/openapi/verification/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pathObject (readonly)

Returns the value of attribute path.



10
11
12
# File 'lib/liminal/openapi/verification/error.rb', line 10

def path
  @path
end

#sourcesObject (readonly)

Returns the value of attribute sources.



10
11
12
# File 'lib/liminal/openapi/verification/error.rb', line 10

def sources
  @sources
end