Sha256: bbcc65cf6b791ed230f423215128909aeaf11258a95cf1f848a435d03d154a2b

Contents?: true

Size: 1.35 KB

Versions: 8

Compression:

Stored size: 1.35 KB

Contents

# frozen_string_literal: true

RSpec::OpenAPI::Record = Struct.new(
  :http_method,           # @param [String]  - "GET"
  :path,                  # @param [String]  - "/v1/status/:id"
  :path_params,           # @param [Hash]    - {:controller=>"v1/statuses", :action=>"create", :id=>"1"}
  :query_params,          # @param [Hash]    - {:query=>"string"}
  :request_params,        # @param [Hash]    - {:request=>"body"}
  :required_request_params, # @param [Array]    - ["param1", "param2"]
  :request_content_type,  # @param [String]  - "application/json"
  :request_headers,       # @param [Array]  - [["header_key1", "header_value1"], ["header_key2", "header_value2"]]
  :summary,               # @param [String]  - "v1/statuses #show"
  :tags,                  # @param [Array]   - ["Status"]
  :operation_id,          # @param [String]   - "request-1234"
  :description,           # @param [String]  - "returns a status"
  :security,              # @param [Array]  - [{securityScheme1: []}]
  :status,                # @param [Integer] - 200
  :response_body,         # @param [Object]  - {"status" => "ok"}
  :response_headers,      # @param [Array]  - [["header_key1", "header_value1"], ["header_key2", "header_value2"]]
  :response_content_type, # @param [String]  - "application/json"
  :response_content_disposition, # @param [String]  - "inline"
  keyword_init: true,
)

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rspec-openapi-0.16.0 lib/rspec/openapi/record.rb
rspec-openapi-0.15.0 lib/rspec/openapi/record.rb
rspec-openapi-0.14.0 lib/rspec/openapi/record.rb
rspec-openapi-0.13.0 lib/rspec/openapi/record.rb
rspec-openapi-0.12.0 lib/rspec/openapi/record.rb
rspec-openapi-0.11.0 lib/rspec/openapi/record.rb
rspec-openapi-0.10.0 lib/rspec/openapi/record.rb
rspec-openapi-0.9.0 lib/rspec/openapi/record.rb