Class: OpenAPIParser::Schemas::Discriminator

Inherits:
Base
  • Object
show all
Defined in:
lib/openapi_parser/schemas/classes.rb,
lib/openapi_parser/schemas/discriminator.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#object_reference, #parent, #raw_schema, #root

Method Summary

Methods inherited from Base

#after_init, #initialize, #inspect

Methods included from Expandable

#expand_reference

Methods included from Findable

#find_object, #purge_object_cache

Methods included from Parser

#_openapi_all_child_objects, #_update_child_object, included, #load_data

Constructor Details

This class inherits a constructor from OpenAPIParser::Schemas::Base

Instance Attribute Details

#mappingHash{String => String] (readonly)

Returns Hash{String => String].

Returns:

  • (Hash{String => String])

    Hash{String => String]



9
# File 'lib/openapi_parser/schemas/discriminator.rb', line 9

openapi_attr_value :mapping

#property_nameString? (readonly)

Returns:

  • (String, nil)


5
# File 'lib/openapi_parser/schemas/discriminator.rb', line 5

openapi_attr_value :property_name, schema_key: :propertyName