class Yori::Schema::V3::OAuthFlow
OAuthFlow: Configuration details for a supported OAuth Flow
Public Instance Methods
scope(key, value)
click to toggle source
# File lib/yori/schema/v3/oauth_flow.rb, line 24 def scope(key, value) self['scopes'] ||= {} self['scopes'][key.to_s] = value.to_s end
scopes(&block)
click to toggle source
@!method scopes
REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it.
# File lib/yori/schema/v3/oauth_flow.rb, line 19 def scopes(&block) self['scopes'] = {} instance_eval(&block) end
validate!()
click to toggle source
# File lib/yori/schema/v3/oauth_flow.rb, line 29 def validate! validate_require_fields!('scopes') end