Sha256: 032185ec90a83106eb9da4749055b06934ae81afa55f8aa7de46831a7d07fa1e

Contents?: true

Size: 1.46 KB

Versions: 2

Compression:

Stored size: 1.46 KB

Contents

# frozen_string_literal: true

class OAPI::OpenAPI::V30::Components < OAPI::Types::Object
  class Schemas < OAPI::Types::Map
    item :schema, OAPI::Schema
  end

  class Parameters < OAPI::Types::Map
    item :parameter, OAPI::OpenAPI::V30::Parameters::Parameter
  end

  class RequestBodies < OAPI::Types::Map
    item :body, OAPI::OpenAPI::V30::RequestBody
  end

  class SecuritySchemes < OAPI::Types::Map
    class Scheme < OAPI::Types::Object
      class Flows < OAPI::Types::Object
        class Flow < OAPI::Types::Object
          property :authorization_url
          property :token_url
          property :refresh_url
          property :scopes
        end

        property :implicit, Flow
        property :password, Flow
        property :client_credentials, Flow
        property :authorization_code, Flow
      end

      property :type
      property :description
      property :name
      property :_in
      property :scheme
      property :bearer_format
      property :open_id_connect_url

      property :flows, Flows
    end

    item :scheme, Scheme
  end

  property :schemas, Schemas
  property :responses, OAPI::OpenAPI::V30::Responses
  property :parameters, Parameters
  property :examples, OAPI::OpenAPI::V30::Examples
  property :request_bodies, RequestBodies
  property :headers, OAPI::OpenAPI::V30::Headers
  property :security_schemes, SecuritySchemes
  property :links, OAPI::OpenAPI::V30::Links
  property :callbacks, OAPI::OpenAPI::V30::Callbacks
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
oapi-0.1.3 lib/oapi/open_api/v30/components.rb
oapi-0.1.2 lib/oapi/open_api/v30/components.rb