Sha256: ccc6cc1794f4bb22faf28aaa1d18c0e210a4b4c2c4621d700612f5ed602f8fec

Contents?: true

Size: 457 Bytes

Versions: 15

Compression:

Stored size: 457 Bytes

Contents

# TODO: support servers
# TODO: support reference

module OpenAPIParser::Schemas
  class PathItem < Base
    include OpenAPIParser::ParameterValidatable

    openapi_attr_values :summary, :description

    openapi_attr_objects :get, :put, :post, :delete, :options, :head, :patch, :trace, Operation
    openapi_attr_list_object :parameters, Parameter, reference: true

    # @return [Operation]
    def operation(method)
      send(method)
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
openapi_parser-0.6.1 lib/openapi_parser/schemas/path_item.rb
openapi_parser-0.6.0 lib/openapi_parser/schemas/path_item.rb
openapi_parser-0.5.0 lib/openapi_parser/schemas/path_item.rb
openapi_parser-0.4.1 lib/openapi_parser/schemas/path_item.rb
openapi_parser-0.4.0 lib/openapi_parser/schemas/path_item.rb
openapi_parser-0.3.1 lib/openapi_parser/schemas/path_item.rb
openapi_parser-0.3.0 lib/openapi_parser/schemas/path_item.rb
openapi_parser-0.2.7 lib/openapi_parser/schemas/path_item.rb
openapi_parser-0.2.6 lib/openapi_parser/schemas/path_item.rb
openapi_parser-0.2.5 lib/openapi_parser/schemas/path_item.rb
openapi_parser-0.2.4 lib/openapi_parser/schemas/path_item.rb
openapi_parser-0.2.3 lib/openapi_parser/schemas/path_item.rb
openapi_parser-0.2.2 lib/openapi_parser/schemas/path_item.rb
openapi_parser-0.2.1 lib/openapi_parser/schemas/path_item.rb
openapi_parser-0.2.0 lib/openapi_parser/schemas/path_item.rb