Sha256: 86f0a5039ac23f393b3626434273d8091c9a68414c473dce4b24ab1850a483e0
Contents?: true
Size: 712 Bytes
Versions: 12
Compression:
Stored size: 712 Bytes
Contents
# frozen_string_literal: true require "openapi3_parser/node_factory/object" module Openapi3Parser module NodeFactory class OauthFlows < NodeFactory::Object allow_extensions field "implicit", factory: :oauth_flow_factory field "password", factory: :oauth_flow_factory field "clientCredentials", factory: :oauth_flow_factory field "authorizationCode", factory: :oauth_flow_factory private def oauth_flow_factory(context) NodeFactory::OptionalReference.new(NodeFactory::OauthFlow) .call(context) end def build_object(data, context) Node::OauthFlows.new(data, context) end end end end
Version data entries
12 entries across 12 versions & 2 rubygems