Class: Eazypi::SecurityScheme

Inherits:
Object
  • Object
show all
Includes:
SpecObject
Defined in:
lib/eazypi/security_scheme.rb

Overview

OpenAPI spec SecurityScheme

Instance Method Summary collapse

Methods included from SpecObject

included, #initialize, #load

Instance Method Details

#to_openapi_specObject

spec_attribute :flows # Not supported yet spec_attribute :open_id_connect_url # Not supported yet



20
21
22
23
24
25
26
27
28
29
# File 'lib/eazypi/security_scheme.rb', line 20

def to_openapi_spec
  {
    "type" => type,
    "description" => description,
    "name" => name,
    "in" => api_key_in,
    "schema" => schema,
    "bearerFormat" => bearer_format
  }.compact
end