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.



58
59
60
61
# File 'lib/openapi_parser/errors.rb', line 58

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

Instance Method Details

#messageObject



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

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