Class: OpenAPIParser::Schemas::Components

Inherits:
Base
  • Object
show all
Defined in:
lib/openapi_parser/schemas/classes.rb,
lib/openapi_parser/schemas/components.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

#headersHash{String => Header}? (readonly)

Returns header objects.

Returns:

  • (Hash{String => Header}, nil)

    header objects



26
# File 'lib/openapi_parser/schemas/components.rb', line 26

openapi_attr_hash_object :headers, Header, reference: true

#parametersHash{String => Parameter}? (readonly)

Returns:



10
# File 'lib/openapi_parser/schemas/components.rb', line 10

openapi_attr_hash_object :parameters, Parameter, reference: true

#request_bodiesHash{String => RequestBody}? (readonly)

Returns:



22
# File 'lib/openapi_parser/schemas/components.rb', line 22

openapi_attr_hash_object :request_bodies, RequestBody, reference: true, schema_key: :requestBodies

#responsesHash{String => Response}? (readonly)

Returns:



18
# File 'lib/openapi_parser/schemas/components.rb', line 18

openapi_attr_hash_object :responses, Response, reference: true