Sha256: 2c3b5b266bd507b42273667d45f708b19aaf7e01e2f9530385196ee84fa61b15

Contents?: true

Size: 793 Bytes

Versions: 9

Compression:

Stored size: 793 Bytes

Contents

# TODO: examples
# TODO: headers
# TODO: securitySchemes
# TODO: links
# TODO: callbacks

module OpenAPIParser::Schemas
  class Components < Base
    # @!attribute [r] parameters
    #   @return [Hash{String => Parameter}, nil]
    openapi_attr_hash_object :parameters, Parameter, reference: true

    # @!attribute [r] parameters
    #   @return [Hash{String => Parameter}, nil]
    openapi_attr_hash_object :schemas, Schema, reference: true

    # @!attribute [r] responses
    #   @return [Hash{String => Response}, nil]
    openapi_attr_hash_object :responses, Response, reference: true

    # @!attribute [r] request_bodies
    #   @return [Hash{String => RequestBody}, nil]
    openapi_attr_hash_object :request_bodies, RequestBody, reference: true, schema_key: :requestBodies
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
openapi_parser-0.1.9 lib/openapi_parser/schemas/components.rb
openapi_parser-0.1.8 lib/openapi_parser/schemas/components.rb
openapi_parser-0.1.7 lib/openapi_parser/schemas/components.rb
openapi_parser-0.1.6 lib/openapi_parser/schemas/components.rb
openapi_parser-0.1.5 lib/openapi_parser/schemas/components.rb
openapi_parser-0.1.4 lib/openapi_parser/schemas/components.rb
openapi_parser-0.1.3 lib/openapi_parser/schemas/components.rb
openapi_parser-0.1.2 lib/openapi_parser/schemas/components.rb
openapi_parser-0.1.1 lib/openapi_parser/schemas/components.rb