Exception: OpenAPIParser::NotExistDiscriminatorMappedSchema

Inherits:
OpenAPIError
  • Object
show all
Defined in:
lib/openapi_parser/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(mapped_schema_reference, reference) ⇒ NotExistDiscriminatorMappedSchema

Returns a new instance of NotExistDiscriminatorMappedSchema.



64
65
66
67
# File 'lib/openapi_parser/errors.rb', line 64

def initialize(mapped_schema_reference, reference)
  super(reference)
  @mapped_schema_reference = mapped_schema_reference
end

Instance Method Details

#messageObject



69
70
71
# File 'lib/openapi_parser/errors.rb', line 69

def message
  "discriminator mapped schema #{@mapped_schema_reference} does not exist in #{@reference}"
end