Module: Scorpio::OpenAPI::SecurityScheme

Includes:
Document::Descendent
Included in:
V3_0::SecurityScheme
Defined in:
lib/scorpio/openapi.rb

Instance Method Summary collapse

Methods included from Document::Descendent

#openapi_document

Instance Method Details

#operationsEnumerable<OpenAPI::Operation>

Returns:



38
39
40
41
42
# File 'lib/scorpio/openapi.rb', line 38

def operations
  openapi_document.operations.select do |op|
    op.security.respond_to?(:to_ary) && op.security.any? { |sr| sr.each_key.include?(propertyName) }
  end
end

#propertyNameObject



44
45
46
# File 'lib/scorpio/openapi.rb', line 44

def propertyName
  jsi_ptr.tokens.last
end