class Yori::Schema::V3::SecurityRequirement
SecurityRequirement:
Lists the required security schemes to execute this operation. The name used for each property MUST correspond to a security scheme declared in the Security Schemes under the Components Object.
Public Instance Methods
scheme(key, scopes)
click to toggle source
@!method scheme
Each key MUST correspond to a security scheme which is declared in the Security Schemes under the Components Object. If the security scheme is of type "oauth2" or "openIdConnect", then the value is a list of scope names required for the execution. For other security scheme types, the array MUST be empty.
# File lib/yori/schema/v3/security_requirement.rb, line 14 def scheme(key, scopes) self[key.to_s] ||= [] self[key.to_s].concat(scopes) end